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

Class Cycle

src/graph/undirected/cycle.rs:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8use crate::ll::linked_list::Iter;
9
10pub struct Cycle {
11 marked: Vec<bool>,
12 cycle: Option<Stack<usize>>,
13 edge_to: Vec<usize>,
14}
15
16impl Cycle {
17 pub fn new(g: &dyn IGraph) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected