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

Method cycle

src/graph/directed/cycle.rs:53–55  ·  view source on GitHub ↗

vertices on a cycle (if one exists)

(&self)

Source from the content-addressed store, hash-verified

51
52 /// vertices on a cycle (if one exists)
53 pub fn cycle(&self) -> Option<Iter<'_, usize>> {
54 self.cycle.as_ref().map(|v| v.iter())
55 }
56}
57
58impl EdgeWeightedDirectedCycle {

Callers 2

checkMethod · 0.45
find_negative_cycleMethod · 0.45

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected