Skip to main content

simple/
simple.rs

1use pathgraph::PathGraph;
2
3fn main() {
4    let mut map = PathGraph::new();
5
6    map.insert(&[0], 1);
7    map.insert(&[1], 2);
8    map.insert(&[2], 3);
9
10    map.insert(&[0, 0], 4);
11    map.insert(&[0, 1], 5);
12    map.insert(&[0, 1, 0], 6);
13    map.insert(&[0, 1, 0], 7);
14    map.remove(&[0, 1, 0]);
15    map.insert(&[0, 1, 0], 7);
16
17    println!("{map:#?}");
18}