pyworkflow.utils.graph module
This module define a Graph class and some utilities
- class pyworkflow.utils.graph.Graph(rootName='ROOT', root=None)[source]
Bases:
object
Simple directed Graph class. Implemented using adjacency lists.
- class pyworkflow.utils.graph.Node(name=None, label=None)[source]
Bases:
object
A node inside the graph.
- countChildren(visitedNode=None, count=0)[source]
Iterate over all childs and subchilds. Nodes can be visited once