IMP Reference Guide
develop.63b38c487d,2024/12/22
The Integrative Modeling Platform
|
Defines the graphNode class. More...
Defines the graphNode class.
Each node corresponds to a snapshot model. Nodes can be connected to create spatiotemporal models.
Classes | |
class | graphNode |
A class to represent a node in a spatiotemporal process. More... | |
Functions | |
def | draw_edge |
Draws an edge between graphNode objects nodeA and nodeB. More... | |
def IMP.spatiotemporal.graphNode.draw_edge | ( | nodeA, | |
nodeB, | |||
spatio_temporal_rule | |||
) |
Draws an edge between graphNode objects nodeA and nodeB.
If spatio_temporal_rule, node will only be drawn if the components of nodeA are a subset of the components of nodeB. If spatio_temporal_rule: determines if an edge should be drawn if Node A comes immediately before node B in time and if node B contains node A's components as a subset. Else: draws an edge between nodeA and nodeB regardless.
nodeA | first graphNode object |
nodeB | second graphNode object |
spatio_temporal_rule | Boolean, whether to consider composition when drawing edges |
Definition at line 187 of file graphNode.py.