app/src/main/java/org/jgrapht/alg/AbstractPathElement.java
public List<E> createEdgeListPath()
    {
        List<E> path = new ArrayList<E>();
        AbstractPathElement<V, E> pathElement = this;

        // while start vertex is not reached.
        while (pathElement.getPrevEdge() != null) {
            path.add(pathElement.getPrevEdge());

            pathElement = pathElement.getPrevPathElement();
        }

        Collections.reverse(path);

        return path;
    }
/**
     * Returns the path as a list of edges.
     *
     * @return list of <code>Edge</code>.
     */
Returns the path as a list of edges.
@return list of Edge.
Returns the path as a list of edges . @return list of Edge .
public List<E> createEdgeListPath()
    {
        List<E> path = new ArrayList<E>();
        AbstractPathElement<V, E> pathElement = this;
        while (pathElement.getPrevEdge() != null) {
            path.add(pathElement.getPrevEdge());
            pathElement = pathElement.getPrevPathElement();
        }
        Collections.reverse(path);
        return path;
    }
public List < E > createEdgeListPath ( ) { List < E > path = new ArrayList < E > ( ) ; AbstractPathElement < V , E > pathElement = this ; while ( pathElement . getPrevEdge ( ) != null ) { path . add ( pathElement . getPrevEdge ( ) ) ; pathElement = pathElement . getPrevPathElement ( ) ; } Collections . reverse ( path ) ; return path ; }
Returns the path as a list of edges.
Returns the path as a list of edges .
// while start vertex is not reached.