System Code

GraphD system code is just a set of header files, one may include them into the application code and compile using GCC. The current system code runs in Linux and should be compiled with C++11 enabled.

Toy Graph

Each line represents a vertex.

Line format:    vertex-ID    \t    number-of-neighbors    neighbor1-ID    neighbor2-ID    •••

To run the application code with the toy graph, put the data to HDFS as follows:

hadoop fs -mkdir /toyFolder

hadoop fs -put {your_local_directory_for_toy.txt}/toy.txt /toyFolder

To check the result, type the following command:

hadoop fs -cat /toyOutput/*

Application Code

*** Note: As a disk-based system, each job will write and read data from local disk, and the data are put under a folder which we call "local root". In our code, we always set the local root as "/home/yanda/tmp/iopregel" since our Linux home folder is "/home/yanda". Remeber to specify the local root to be your desired path instead.