File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ input_graph.freeze();
33
33
let fast_graph = fast_paths :: prepare (& input_graph );
34
34
35
35
// calculate the shortest path between nodes with ID 8 and 6
36
- let shortest_path = fast_paths :: calc_path (& fast_path_graph , 8 , 6 );
36
+ let shortest_path = fast_paths :: calc_path (& fast_graph , 8 , 6 );
37
37
38
38
match shortest_path {
39
39
Some (p ) => {
@@ -58,15 +58,15 @@ For batch-wise calculation of shortest paths the method described above is ineff
58
58
``` rust
59
59
// ... see above
60
60
// create a path calculator (note: not thread-safe, use a separate object per thread)
61
- let mut path_calculator = fast_paths :: create_calculator (& fast_path_graph );
62
- let shortest_path = path_calculator . calc_path (& fast_path_graph , 8 , 6 );
61
+ let mut path_calculator = fast_paths :: create_calculator (& fast_graph );
62
+ let shortest_path = path_calculator . calc_path (& fast_graph , 8 , 6 );
63
63
```
64
64
65
65
### Saving the prepared graph to disk
66
66
67
67
``` rust
68
- fast_paths :: save_to_disk (& fast_path_graph , " fast_path_graph .fp" );
69
- let fast_path_graph = fast_paths :: load_from_disk (" fast_path_graph .fp" );
68
+ fast_paths :: save_to_disk (& fast_graph , " fast_graph .fp" );
69
+ let fast_graph = fast_paths :: load_from_disk (" fast_graph .fp" );
70
70
```
71
71
72
72
### Preparing the graph after changes
You can’t perform that action at this time.
0 commit comments