Comtesse
Utility crate to handle common tasks that require graphs
use ;
let mut graph = new;
// insert the numbers 1 to 10 as vertices
for i in 1..=10
assert_eq!;
// construct a graph satisfying the following condition
// there exists an edge (u, v) if the condition holds
graph.construct_edges_from;
// (1, 9) should be an edge, since (1 + 9) % 10 == 0
assert!;
Algorithms
Shortest Path in Unweighted Graphs
let mut graph: Unweighted = .collect;
graph.construct_edges_from;
let a = graph.get_vertex.unwrap;
let d = graph.get_vertex.unwrap;
let path_ad = graph.shortest_path_unweighted;
assert_eq!;