This module define a Graph class and some utilities
- class pyworkflow.utils.graph.Graph(rootName='ROOT', root=None)[source]
Simple directed Graph class. Implemented using adjacency lists.
If useId is True, use the node id for label the graph. If not, use the run name.
- class pyworkflow.utils.graph.Node(name=None, label=None)[source]
A node inside the graph.
- countChilds(visitedNode=None, count=0)[source]
Iterate over all childs and subchilds. Nodes can be visited once
Iterate over all childs and subchilds. Nodes can be visited more than once if have more than one parent.