Expand description
General-purpose DAG algorithms.
Functionsยง
- Finds the closest common neighbor among the
set1andset2. - Finds the closest common
Okneighbor among theset1andset2. - Traverses nodes from
startin depth-first order. - Traverses nodes from
startin depth-first order. - Find nodes in the start set that are not reachable from other nodes in the start set.
- Finds
Oknodes in the start set that are not reachable from other nodes in the start set. - Builds a list of nodes reachable from the
startwhere neighbors come before the node itself. - Builds a list of
Oknodes reachable from thestartwhere neighbors come before the node itself. - Builds a list of nodes reachable from the
startwhere neighbors come after the node itself. - Like
topo_order_reverse(), but can iterate linear DAG lazily. - Like
topo_order_reverse_ok(), but can iterate linear DAG lazily. - Builds a list of
Oknodes reachable from thestartwhere neighbors come after the node itself. - Builds a list of nodes reachable from the
startwhere neighbors come after the node itself. - Builds a list of
Oknodes reachable from thestartwhere neighbors come after the node itself.