Skip to content

_graph.py

NodeGraph

nodes property

Returns the set of all nodes in this graph.

Returns:

Type Description
set[Node]

all nodes in this graph

sink_nodes property

Finds the sink nodes, i.e., nodes without successors.

Returns:

Type Description
set[Node]

set of the sink nodes