ftosoni / webgraph

Implement multiplication y=Mx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webgraph

Webgraph++ code (http://cnets.indiana.edu/groups/nan/webgraph/)

This code worked for what I used it for, but I cannot promise it is thorougly tested and there are almost certainly some strange bugs! Your help would be greatly appreciated in adding tests and generally cleaning it up.

I have moved on and do not have much time to answer questions about setup and compilation, so this code is provided AS-IS. With that said, I hope it is useful or at least interesting.

You will definitely need Boost (http://www.boost.org/) to make this work.

You will notice a lot of TODOs and commented-out unimplemented methods. Feel free to write them :)

Compilation

Modify the fields INCLUDES and LIBS in flags.mk inserting the absolute path of the project. Then

cd webgraph
make -j 12

Encoding

./tests/compress_webgraph --source=./data/somegraph --dest=./data/somegraph.wbg

Decoding

Firstly, compile:

cd tests
g++ -L.. -I.. -O3 print_webgraph.cpp -o print_webgraph -lwebgraph -lboost_regex -lboost_program_options -lboost_filesystem 
cd ..

Then, run:

tests/print_webgraph data/somegraph.wbg

About

Implement multiplication y=Mx

License:GNU General Public License v2.0


Languages

Language:C++ 84.5%Language:Java 12.3%Language:Makefile 2.2%Language:Perl 1.0%