Saving and loading graphs
The fastest way to ingest a graph is to load one from Raphtory's on-disk format using Graph.load_from_file().
Once a graph has been created you can save it using:
save_to_file()– saves to a directorysave_to_zip()– saves to a single zip file
This means you don't need to parse the original data every time you run a script, which is especially useful for large datasets.
You can also pickle Raphtory graphs, which uses these functions under the hood.