Interface ManyToManyShortestPathsAlgorithm<V,E>

Type Parameters:
V - the graph vertex type
E - the graph edge type
All Superinterfaces:
ShortestPathAlgorithm<V,E>
All Known Implementing Classes:
CHManyToManyShortestPaths, DefaultManyToManyShortestPaths, DijkstraManyToManyShortestPaths

public interface ManyToManyShortestPathsAlgorithm<V,E> extends ShortestPathAlgorithm<V,E>
An algorithm which computes shortest paths from all sources to all targets.
Author:
Semen Chudakov
  • Method Details

    • getManyToManyPaths

      ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E> getManyToManyPaths(Set<V> sources, Set<V> targets)
      Computes shortest paths from all vertices in sources to all vertices in targets.
      Parameters:
      sources - list of sources vertices
      targets - list of target vertices
      Returns:
      computed shortest paths