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

Method dist_to

src/graph/util/paths.rs:122–124  ·  view source on GitHub ↗
(&self, v: usize)

Source from the content-addressed store, hash-verified

120 }
121
122 pub fn dist_to(&self, v: usize) -> usize {
123 self.dist_to[v]
124 }
125
126 fn bfs(&mut self, g: &dyn IGraph, s: usize) {
127 let mut queue = Queue::default();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected