Multidigraph
Calc multidigraph given an array of Multidigraph::NodePath
It provides method to check if a node is part of any Digraph of the forest defined by the multipath
Where T: PartialOrd + Clone + std::fmt::Display
Code Example
let mut agraph = new;
agraph.add_paths;
agraph.build_adjac;
let loops = agraph.check_loops;
assert_eq!;
agraph.print_internal;
let c_dag = &agraph.connected_dags;
println!;
let h_dag = agraph.hu_connected_dags;
println!;
println!;
prints:
Some([Path([(8, 7), (7, 6), (6, 5), (5, 4), (4, 3), (3, 0), (0, 1), (1, 2), (0, 2)]), Single(9)])
[Path([("9", "8"), ("8", "7"), ("7", "6"), ("6", "5"), ("5", "4"), ("4", "1"), ("1", "2"), ("2", "3"), ("1", "3")]), Single("X")]
digraph G {
9 -> 8;
8 -> 7;
7 -> 6;
6 -> 5;
5 -> 4;
4 -> 1;
1 -> 2;
2 -> 3;
1 -> 3;
X;
}
hu_connected_dags() stands for HUman readable / ready
If there are loops are emitted
Traits
multidigraph::NodePathTrait
Future release
Evaluate in node weight for each internal nodes