Class LazyKShortestPathsSearch<V extends Vertex,​E extends Edge<V>>


  • public class LazyKShortestPathsSearch<V extends Vertex,​E extends Edge<V>>
    extends Object
    Lazily runs K shortest paths algorithm on a provided directed graph.
    • Constructor Detail

      • LazyKShortestPathsSearch

        public LazyKShortestPathsSearch()
    • Method Detail

      • lazyPathSearch

        public Stream<Path<V,​E>> lazyPathSearch​(Graph<V,​E> graph,
                                                      V src,
                                                      V dst,
                                                      EdgeWeigher<V,​E> weigher)
        Searches the specified graph for paths between vertices.
        Parameters:
        graph - graph to be searched
        src - source vertex
        dst - destination vertex
        weigher - edge-weigher
        Returns:
        Stream of shortest paths