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

Function cycle

tests/test_shortest_paths.rs:46–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45#[test]
46fn cycle() {
47 let i = TINY_EWD;
48 let graph = create_graph(i);
49 let cycle = EdgeWeightedDirectedCycle::from(graph.as_ref());
50 assert!(cycle.check().is_ok());
51}
52
53#[allow(non_snake_case)]
54#[test]

Callers

nothing calls this directly

Calls 1

create_graphFunction · 0.70

Tested by

no test coverage detected