Wrapper to represent a database object as a graph
This class is primarily used by DoubleEndedConnect and has a number of utility functions for that purpose. If you want access to the networkx Graph object, it is stored as self.graph
Parameters : | database :
minima : list of minima, optional
no_edges : bool, optional
|
---|
See also
Examples
a graph can be easily constructed from a database:
>>> graph = TSGraph(database)
the networkx graph is accessed directly by
>>> networkx_graph = graph.graph
Methods
addMinimum(minimum) | add a minimum to the database and graph |
addTransitionState(ts) | |
areConnected(min1, min2) | |
getPath(min1, min2) | |
mergeMinima(min1, min2) | delete minima2. all transition states pointing to min2 should |
refresh() |