IMP logo
IMP Reference Guide  develop.549d75e6f4,2024/11/20
The Integrative Modeling Platform
IMP.spatiotemporal.graphNode Namespace Reference

Defines the graphNode class. More...

Detailed Description

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...
 

Function Documentation

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.

Parameters
nodeAfirst graphNode object
nodeBsecond graphNode object
spatio_temporal_ruleBoolean, whether to consider composition when drawing edges
Note
This function is only available in Python.

Definition at line 187 of file graphNode.py.