out_component#
- out_component(node)#
Out component – Finding the “out-component” of a node in a directed graph involves identifying all nodes that can be reached following only outgoing edges.
- Parameters:
node (Node) – The node whose out-component we wish to calculate
- Returns:
A NodeState mapping the nodes in the out-component to their distance from the starting node.
- Return type: