MCPcopy Create free account
hub / github.com/douchuan/algorithm / order

Method order

src/graph/directed/sort.rs:28–30  ·  view source on GitHub ↗

Returns a topological order if the digraph has a topologial order, and None otherwise.

(&self)

Source from the content-addressed store, hash-verified

26 /// Returns a topological order if the digraph has a topologial order,
27 /// and None otherwise.
28 pub fn order(&self) -> Option<Iter<'_, usize>> {
29 self.order.as_ref().map(|v| v.iter())
30 }
31}
32
33macro_rules! impl_from {

Callers 1

newMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected