navactor 0.5.3

A cli tool for creating and updating actors from piped input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use petgraph::algo;
use petgraph::graph::Graph;

#[test]
fn test_dijkstra() {
    let mut graph = Graph::<(), ()>::new();

    graph.extend_with_edges(&[(0, 1), (0, 2), (0, 3), (3, 4)]);

    for start in graph.node_indices() {
        println!("--- {:?} ---", start.index());
        println!("{:?}", algo::dijkstra(&graph, start, None, |_| 1));
    }
}