Converts a text file of lines "<id1><whitespace><id2>" into a binary memory mapped graph.
Converts a text file of lines "<id1><whitespace><id2>" into a binary memory mapped graph. Any duplicate edges are included in the output. Empty lines are ignored. Progress is logged using the given function.
The convert method converts a graph from a text file of unsorted edges "<id1><whitespace><id2>" to a binary file which can be efficiently read using MemMappedDynamicDirectedGraph. This can also be run from the command line; for example: sbt assembly printf "1 2\n3 4\n1 3" > input_graph.txt java -cp target/scala-2.11/tempest<current_version>.jar \ co.teapot.tempest.graph.MemMappedDynamicDirectedGraphConverter input_graph.txt output_graph.dat
Then in scala code, MemMappedDynamicDirectedGraph("output_graph.dat") will efficiently read the graph and allow for further nodes and edges to be added.