MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / main

Function main

publication/code/chapter09/dfs.rs:128–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128fn main() {
129 let data = [
130 [1,2],[2,1],[1,3],[3,1],[2,4],[4,2],[2,5],
131 [5,2],[3,6],[6,3],[3,7],[7,3],[4,5],[5,4],
132 [6,7],[7,6],[5,8],[8,5],[6,8],[8,6]
133 ];
134 let gp = build_graph(data);
135 dfs(gp);
136}

Callers

nothing calls this directly

Calls 2

build_graphFunction · 0.70
dfsFunction · 0.70

Tested by

no test coverage detected