jj_lib

Module dag_walk

source
Expand description

General-purpose DAG algorithms.

Functionsยง

  • Finds the closest common neighbor among the set1 and set2.
  • Finds the closest common Ok neighbor among the set1 and set2.
  • Traverses nodes from start in depth-first order.
  • Traverses nodes from start in depth-first order.
  • Find nodes in the start set that are not reachable from other nodes in the start set.
  • Finds Ok nodes in the start set that are not reachable from other nodes in the start set.
  • Builds a list of nodes reachable from the start where neighbors come before the node itself.
  • Builds a list of Ok nodes reachable from the start where neighbors come before the node itself.
  • Builds a list of nodes reachable from the start where 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 Ok nodes reachable from the start where neighbors come after the node itself.
  • Builds a list of nodes reachable from the start where neighbors come after the node itself.
  • Builds a list of Ok nodes reachable from the start where neighbors come after the node itself.