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

Function lazy_Prim_mst

tests/test_graph_mst.rs:31–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29#[allow(non_snake_case)]
30#[test]
31fn lazy_Prim_mst() {
32 let i = TINY_EWG;
33 let g = create_graph(i);
34 let mst = LazyPrimMST::new(g.as_ref());
35 assert_relative_eq!(1.81, mst.weight());
36 assert!(mst.check(g.as_ref()).is_ok());
37
38 // for e in mst.edges() {
39 // println!("{}", e.to_string());
40 // }
41}
42
43#[allow(non_snake_case)]
44#[test]

Callers

nothing calls this directly

Calls 1

create_graphFunction · 0.70

Tested by

no test coverage detected