ID - the vertex ID typepublic class PgxPath<ID> extends Destroyable
PgxGraph.| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
PgxPath.PathIterable<E>  | 
static class  | 
PgxPath.PathIterator<E>
A read-only  
ListIterator with an additional PgxPath.PathIterator.reset() method to start over iteration. | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(java.lang.Object obj)  | 
boolean | 
exists()
Checks whether a path exists. 
 | 
PgxVertex<ID> | 
getDestination()
Gets the destination vertex. 
 | 
PgxPath.PathIterable<PgxEdge> | 
getEdges()
Gets the edges of this path. 
 | 
PgxGraph | 
getGraph()
Gets the PgxGraph the Path is defined on. 
 | 
double | 
getPathLengthWithCost()
Gets the path cost Note: for hop-based algorithms, this method returns  
getPathLengthWithHop() as double. | 
long | 
getPathLengthWithHop()
Gets the path length in hops. 
 | 
PgxVertex<ID> | 
getSource()
Gets the source vertex. 
 | 
PgxPath.PathIterable<PgxVertex<ID>> | 
getVertices()
Gets the vertices of this path. 
 | 
int | 
hashCode()  | 
java.lang.String | 
toString()  | 
close, destroy, destroyAsyncpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean exists()
public PgxVertex<ID> getDestination()
public PgxPath.PathIterable<PgxEdge> getEdges()
public PgxGraph getGraph()
public double getPathLengthWithCost()
getPathLengthWithHop() as double.public long getPathLengthWithHop()
public PgxPath.PathIterable<PgxVertex<ID>> getVertices()
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.