Hi Trevor,
Most of the time is spent in building a node adjacency list, but there might be ways around it. Which OS and python environment are you using?
Best,
Rok
--
You received this message because you are subscribed to the Google Groups "SNAP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snap-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-discuss/32c79d29-e475-4e5d-b044-f608265626e9n%40googlegroups.com.
Hi,
I added a program to benchmark graph I/O to the repo, it is now in test/readgraph.py. It creates a graph using a preferential attachment and then performs graph I/O with different methods. The graph file size is about 6GB.
Here are the reading times for an undirected graph with 120M nodes and 360M edges:
- 350s, reading an edge list via LoadEdgeList()
- 512s, reading an adjacency list via LoadConnList()
- 29s, reading a binary graph via Load()
- 250s, reading a table via LoadSS() and then running ToGraph()
The best option is to build the graph once, save it in a binary format and then use that to load it at a later time.
Best,
Rok
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-discuss/BYAPR02MB45349E57D405B595348F3512CCCC0%40BYAPR02MB4534.namprd02.prod.outlook.com.