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

Method new

src/graph/directed/cycle.rs:71–78  ·  view source on GitHub ↗
(nv: usize)

Source from the content-addressed store, hash-verified

69
70impl DirectedCycle {
71 fn new(nv: usize) -> Self {
72 Self {
73 cycle: None,
74 edge_to: vec![0; nv],
75 marked: vec![false; nv],
76 on_stack: vec![false; nv],
77 }
78 }
79
80 fn dfs(&mut self, graph: &dyn IGraph, v: usize) {
81 self.on_stack[v] = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected