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

Function main

publication/code/chapter09/bfs.rs:135–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135fn main() {
136 let data = [
137 [1,2],[2,1],[1,3],[3,1],[2,4],[4,2],[2,5],
138 [5,2],[3,6],[6,3],[3,7],[7,3],[4,5],[5,4],
139 [6,7],[7,6],[5,8],[8,5],[6,8],[8,6]
140 ];
141 let gp = build_graph(data);
142 bfs(gp);
143}

Callers

nothing calls this directly

Calls 2

build_graphFunction · 0.70
bfsFunction · 0.70

Tested by

no test coverage detected