Documentation of 'org.jgrapht.alg.AllDirectedPaths' Java class
AllDirectedPaths
org.jgrapht.alg

Class AllDirectedPaths<V,E>

  • Type Parameters:
    V - the graph vertex type
    E - the graph edge type

    Deprecated. 
    In favor of AllDirectedPaths.

    @Deprecated
    public class AllDirectedPaths<V,E>
    extends java.lang.Object
    A Dijkstra-like algorithm to find all paths between two sets of nodes in a directed graph, with options to search only simple paths and to limit the path length.
    Since:
    Feb, 2016
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      java.util.List<GraphPath<V,E>> getAllPaths(java.util.Set<V> sourceVertices, java.util.Set<V> targetVertices, boolean simplePathsOnly, java.lang.Integer maxPathLength)
      Deprecated. 
      Calculate (and return) all paths from the source vertices to the target vertices.
      java.util.List<GraphPath<V,E>> getAllPaths(V sourceVertex, V targetVertex, boolean simplePathsOnly, java.lang.Integer maxPathLength)
      Deprecated. 
      Calculate (and return) all paths from the source vertex to the target vertex.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AllDirectedPaths

        public AllDirectedPaths(DirectedGraph<V,E> graph)
        Deprecated. 
        Create a new instance
        Parameters:
        graph - the input graph
    • Method Detail

      • getAllPaths

        public java.util.List<GraphPath<V,E>> getAllPaths(V sourceVertex,
                                                          V targetVertex,
                                                          boolean simplePathsOnly,
                                                          java.lang.Integer maxPathLength)
        Deprecated. 
        Calculate (and return) all paths from the source vertex to the target vertex.
        Parameters:
        sourceVertex - the source vertex
        targetVertex - the target vertex
        simplePathsOnly - if true, only search simple (non-self-intersecting) paths
        maxPathLength - maximum number of edges to allow in a path (if null, all paths are considered, which may be very slow due to potentially huge output)
        Returns:
        all paths from the source vertex to the target vertex
      • getAllPaths

        public java.util.List<GraphPath<V,E>> getAllPaths(java.util.Set<V> sourceVertices,
                                                          java.util.Set<V> targetVertices,
                                                          boolean simplePathsOnly,
                                                          java.lang.Integer maxPathLength)
        Deprecated. 
        Calculate (and return) all paths from the source vertices to the target vertices.
        Parameters:
        sourceVertices - the source vertices
        targetVertices - the target vertices
        simplePathsOnly - if true, only search simple (non-self-intersecting) paths
        maxPathLength - maximum number of edges to allow in a path (if null, all paths are considered, which may be very slow due to potentially huge output)
        Returns:
        list of all paths from the sources to the targets containing no more than maxPathLength edges

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.