79223804

Date: 2024-11-25 16:21:23
Score: 1.5
Natty:
Report link

Why not store an edge list on disk and then only call up the edges you are visiting next in your random walk? Can be pretty time efficient if you use a tree to index the nodes. Solutions like SQL databases, parquet files, or hdf5 implement the indexing for you. However, these solutions are not as time efficient as a hashtable in memory but you are already switching away from those.

The challenge with networkx is exactly as you describe, you are storing the graph in memory. There are different backends you can configure for networkx, but they mainly seem to add graph algorithms not memory mapping functionality.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (0.5):
Posted by: Sven Voigt