Convert TXT file format to gt format

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert TXT file format to gt format

941317133
Hi all:
I want to use the Stanford data set to solve the shortest path in graph-tool, but the Stanford data is all in TXT format, how do I convert it to gt file format?
Thank,list.



Tyro

_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

facebook_combined.txt (1M) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Convert TXT file format to gt format

Tiago Peixoto
Administrator
Am 23.12.19 um 03:58 schrieb 941317133:
> Hi all:
> I want to use the Stanford data set to solve the shortest path in
> graph-tool, but the Stanford data is all in TXT format, how do I convert
> it to gt file format?

You load it as a graph using load_graph_from_csv() and then save it.

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>