Coder Social home page Coder Social logo

matrixbiclique's Introduction

Matrix Multiplication Biclique Compression

Input is an ASCIIGraph of the WebGraph framework. The first step is to construct a CeciliaGraph, which is a binary format of the input graph. It consists of:

  • number of total nodes : 32-bit
  • number of total edges : 32-bit
  • for each node v in the adjacency lists:
    • node id v : 32-bit, negated
    • all nodes of the adjacency list of v, each 32-bit

cargo run --release --bin ceciliatxt2ceciliabin -- -i ASCIIGraphFileName -o CeciliaGraphFileName

Next, we run Cecilia's vnmextract program that creates files for the extracted bicliques and files for the remaining nodes:

./vnmextract CeciliaGraphFileName 1 1 100 500,100 ${basename} 4

where ${basename} is the filename used as a prefix for the generated files. The most recent file containing all remaining nodes is

ls --sort time biclique/${basename}-it-* | head -n1 > RemainingGraph

The bicliques can be concatenated into a single file

cat "$kBicliqueDir/${basename}-biclique"*.txt > BiCliqueFile .

We can run

cargo run --release --bin ceciliatxt2ceciliabin -- -i RemainingGraph -o RemainingCeciliaGraph

to generate a CeciliaGraph from the remaining nodes.

Finally, we can

  • run a PageRank benchmark on the original graph

cargo run --release --bin ceciliabin2asciigraph -- -i CeciliaGraphFileName

  • run a PageRank benchmark on the remaining graph with the bicliques cargo run --release --bin ceciliabin2asciigraph -- -c BiCliqueFile -i RemainingCeciliaGraph
  • run a PageRank benchmark on the remaining graph with the bicliques and use the original graph to correct missing self-loops or self-loops that have been introduced cargo run --release --bin ceciliabin2asciigraph -- -c BiCliqueFile -i RemainingCeciliaGraph -g CeciliaGraphFileName
  • restore the original ASCIIGraph (modulo self loops) via cargo run --release --bin ceciliabin2asciigraph -- -c BiCliqueFile -i RemainingCeciliaGraph -o newASCIIGraphFileName

Caveats:

  • The biclique extraction tool introduces self-loops, which we remove in the remaining nodes. Hence, we may remove self-loops present in the original graph, or might introduce self-loops that are indirectly given by a biclique. Therefore, we provide the program argument -g to remove them by an additional pass on the original graph.

matrixbiclique's People

Contributors

koeppl avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.