Function layered_operations

Source
pub fn layered_operations<K: ArrayKind, O, A>(
    f: &OpenHypergraph<K, O, A>,
) -> (Vec<K::Index>, K::Index)
where K::Type<A>: Array<K, A>, K::Type<K::I>: NaturalArray<K>, K::I: Into<usize>,
Expand description

Given an OpenHypergraph, compute a layering of its operations as a finite function X → L, then return this as an array-of-arrays r.

§Returns

  • A Vec of arrays r, where r[i] is the array of operations in layer i.
  • An array of unvisited nodes, as in layer