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

Method edges

src/graph/shortest/ew_digraph.rs:34–42  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

32 }
33
34 fn edges(&self) -> Vec<DirectedEdge> {
35 let mut list = Vec::new();
36 for v in 0..self.V() {
37 for e in self.adj(v) {
38 list.push(*e)
39 }
40 }
41 list
42 }
43
44 fn out_degree(&self, v: usize) -> usize {
45 self.adj[v].len()

Callers 2

newMethod · 0.45
checkMethod · 0.45

Calls 3

pushMethod · 0.80
VMethod · 0.45
adjMethod · 0.45

Tested by

no test coverage detected