ID - the vertex ID typepublic class PgxPath<ID extends Comparable<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(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.
|
String |
toString() |
close, destroy, destroyAsyncpublic 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()
Copyright © 2015. All rights reserved.