Crate topological_sort

source ·

Functions

  • 有向グラフの頂点をトポロジカル順に並べて返します。グラフが DAG でなければ None を返します。