Currently the DataGraph can be instantiated empty as done in NetworkX, and then networkx functions can be used to manually add nodes and edges. However, currently this will not update the internal dictionaries QoolQit uses to keep track of things like coordinates. We should either limit the option for the user to use these functions or fully integrate their usage into QoolQit so that the right information is updated. The same thing applies for NetworkX functions to remove nodes and edges from a graph.
Currently the
DataGraphcan be instantiated empty as done in NetworkX, and then networkx functions can be used to manually add nodes and edges. However, currently this will not update the internal dictionaries QoolQit uses to keep track of things like coordinates. We should either limit the option for the user to use these functions or fully integrate their usage into QoolQit so that the right information is updated. The same thing applies for NetworkX functions to remove nodes and edges from a graph.