graphchi

writing output to a file in Graphchi

天大地大妈咪最大 提交于 2019-12-02 08:14:12
问题 I wrote a shortest path code in Graphchi and I wanted to print the output of that in a file. I was trying to use the template shown in the examples but I get error if I use the sameway of writing to a file as in other examples. I have got stuck here. As the output I just want to print (vertex id,its minimum distance from source). How can i do that. 回答1: Here is example how you can output values of all vertices to the console. It is easy to modify it to write the output to a file. Note that if

writing output to a file in Graphchi

北城余情 提交于 2019-12-02 03:25:22
I wrote a shortest path code in Graphchi and I wanted to print the output of that in a file. I was trying to use the template shown in the examples but I get error if I use the sameway of writing to a file as in other examples. I have got stuck here. As the output I just want to print (vertex id,its minimum distance from source). How can i do that. Here is example how you can output values of all vertices to the console. It is easy to modify it to write the output to a file. Note that if you can handle binary files, GraphChi already has the vertex values in a file: .B.vout, where is sizeof