Is it compatible with graphviz?
https://graphviz.readthedocs.io/en/stable/
The graphviz python library works great I've found with the sole exception of not having straightforward ways to edit the graph after creation. It's really more intended for packaging it up to pass to the command line application.
Will you have file import/export for .dot and similar?