Functionsยง
- clone_
subgraph - Creates a new minimal Graph containing only the specified nodes and the edges connecting them.
- get_
upstream_ nodes - Returns all nodes that are upstream (ancestors) of the target node, including the target itself. Only considers Normal edges (not Feedback) to avoid capturing entire feedback loops if not necessary.
- topological_
sort - Sorts the graph nodes topologically. If cycles are detected, they are returned as well.