short-paths 0.1.0

Iterate over s-t paths in a graph in increasing order of length.
Documentation
  • Coverage
  • 0%
    0 out of 13 items documented0 out of 5 items with examples
  • Size
  • Source code size: 34.32 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • bhamrick/short-paths
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bhamrick

short-paths

This is an implementation of the algorithm to find short s-t paths in a graph given by Eppstein in this paper. Specifically, it constructs the path graph as described in section 2, then does a Dijkstra-esque walk from the root of the path graph to generate paths in increasing order of length.

Because we use a basic implementation of Dijkstra's algorithm to generate the shortest path tree, the preprocessing step is O(m log n). Furthermore, since we are not using any of the sophisticated heap selection algorithms and we are returning paths as full lists of edges rather than implicitly, the time to generate the i'th path is O(log i + e) where e is the number of edges in that path.