Closed RunyuanChen closed 7 years ago
The input format is as follows,
<id1> <num_nbs> <nb1> <nb2> <nb3> ...
<id2> <num_nbs> <nb1> <nb2> <nb3> ...
Everything is in integers.
As for output, could you use the HDFS::Write() instead? For the last argument (worker_id) you can obtain it using Context::get_process_id(). Let me know if you prefer an example instead.
what if I want to input a weighted graph? Is there any example algorithm for weighted graph?
I think you can easily modify the parse function in the pagerank example. https://github.com/husky-team/husky/blob/master/examples/pagerank.cpp#L52
Thanks for your help!
Thanks
When running the PageRank, I find there is no output file. Meanwhile, I think the format of input file should be needed.