In [1]:
import DSGRN
In [2]:
network = DSGRN.Network("network.txt")
In [3]:
print(network)
In [4]:
print(network.graphviz())
In [5]:
import graphviz
In [6]:
graph = graphviz.Source(network.graphviz())
In [7]:
graph
Out[7]:
In [8]:
parametergraph = DSGRN.ParameterGraph(network)
In [9]:
print("There are " + str(parametergraph.size()) + " nodes in the parameter graph.")
In [10]:
parameterindex = 34892 # An integer in [0,32592)
In [11]:
parameter = parametergraph.parameter(parameterindex)
In [12]:
parameter
Out[12]:
In [13]:
print(parameter)
In [26]:
domaingraph = DSGRN.DomainGraph(parameter)
In [15]:
domaingraph
Out[15]:
In [16]:
graphviz.Source(domaingraph.graphviz())
Out[16]:
In [17]:
print(domaingraph.coordinates(5)) # ... I wonder what region in phase space domain 5 corresponds to.
In [25]:
morsedecomposition = DSGRN.MorseDecomposition(domaingraph.digraph())
In [19]:
graphviz.Source(morsedecomposition.graphviz())
Out[19]:
In [20]:
morsegraph = DSGRN.MorseGraph()
In [21]:
morsegraph.assign(domaingraph, morsedecomposition)
In [22]:
morsegraph
Out[22]:
In [23]:
print(morsegraph)
In [24]:
graphviz.Source(morsegraph.graphviz())
Out[24]:
In [ ]: