I need to create a graph based on a set of input files. Since those files could be loaded during separate iterations, I need to save the graph and be able to add to it after re-loading the graph information from file.
The obvious choice seems graphviz but the python API doesn't seem to allow loading. PyDot has a parse_dot_data
file and is also referenced in this answer but the documentation is non-existing and there's no clear way to 'append' to a graph. Then there's networkX which seem to have the ability to load although it's nowhere in the documentation to be found. Lastly there's graph-tool which is overkill and requires more libraries and tool than I need for this simple job.
I'm sure this must be a solved problem and I'm reluctant to "reinvent the wheel" and write a database/persistence layer to accomplish this.
How can I make a simple graph in Python, save it somewhere and load it when needed?