MCPcopy Index your code
hub / github.com/douchuan/algorithm / topological

Function topological

tests/test_directed_graph.rs:118–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117#[test]
118fn topological() {
119 let graph = create_digraph(TINY_DG);
120 let cycle = Topological::from(graph.as_ref());
121 assert!(!cycle.has_order());
122
123 let i = JOBS;
124 let symbol_graph = SymbolGraph::new(i, "/", |nv| Box::new(Digraph::from(nv)));
125 let graph = symbol_graph.G();
126 let cycle = Topological::from(graph);
127 assert!(cycle.has_order());
128}
129
130#[test]
131fn scc() {

Callers

nothing calls this directly

Calls 2

create_digraphFunction · 0.85
GMethod · 0.80

Tested by

no test coverage detected