Modifier and Type | Method and Description |
---|---|
long |
getDegree()
Convenience method that calls
getOutDegree() . |
PgxFuture<java.lang.Long> |
getDegreeAsync()
Returns the degree of this vertex by calling
getOutDegreeAsync() . |
long |
getInDegree()
Blocking version of
getInDegreeAsync() . |
PgxFuture<java.lang.Long> |
getInDegreeAsync()
Returns the inDegree of this vertex, i.e., the number of incoming edges of this vertex.
|
java.util.Collection<PgxEdge> |
getInEdges()
Blocking version of
getInEdges() . |
PgxFuture<java.util.Collection<PgxEdge>> |
getInEdgesAsync()
Returns all incoming edges of this vertex.
|
java.util.Collection<PgxVertex<ID>> |
getInNeighbors()
Blocking version of
getInNeighborsAsync() . |
PgxFuture<java.util.Collection<PgxVertex<ID>>> |
getInNeighborsAsync()
Returns all incoming neighbors of this vertex, i.e., all vertices that have an edge to this vertex.
|
java.util.Set<java.lang.String> |
getLabels()
Blocking version of
getLabelsAsync() . |
PgxFuture<java.util.Set<java.lang.String>> |
getLabelsAsync()
Gets the labels
|
java.util.Collection<PgxVertex<ID>> |
getNeighbors(Direction direction)
Convenience method for
getNeighbors(Direction, boolean) that keeps all duplicates. |
java.util.Collection<PgxVertex<ID>> |
getNeighbors(Direction direction, boolean removeDuplicates)
Blocking version of
getNeighborsAsync(Direction, boolean) . |
PgxFuture<java.util.Collection<PgxVertex<ID>>> |
getNeighborsAsync(Direction direction, boolean removeDuplicates)
Returns all neighbors of this vertex, i.e., all vertices that are connected to this vertex.
|
long |
getOutDegree()
Blocking version of
getOutDegreeAsync() . |
PgxFuture<java.lang.Long> |
getOutDegreeAsync()
Returns the outDegree of this vertex, i.e., the number of outgoing edges of this vertex.
|
java.util.Collection<PgxEdge> |
getOutEdges()
Blocking version of
getOutEdges() . |
PgxFuture<java.util.Collection<PgxEdge>> |
getOutEdgesAsync()
Returns all outgoing edges of this vertex.
|
java.util.Collection<PgxVertex<ID>> |
getOutNeighbors()
Blocking version of
getOutNeighborsAsync() . |
PgxFuture<java.util.Collection<PgxVertex<ID>>> |
getOutNeighborsAsync()
Returns all outgoing neighbors of this vertex, i.e., all nodes this vertex has an edge to.
|
equals, getGraph, getId, getProperty, getPropertyAsync, getType, hashCode, serialize, setProperty, setPropertyAsync, toString
public long getDegree()
getOutDegree()
.public PgxFuture<java.lang.Long> getDegreeAsync()
getOutDegreeAsync()
.public long getInDegree()
getInDegreeAsync()
. Calls getInDegreeAsync()
and waits for the returned PgxFuture
to complete.public PgxFuture<java.lang.Long> getInDegreeAsync()
public java.util.Collection<PgxEdge> getInEdges()
getInEdges()
. Calls getInEdges()
and waits for the returned PgxFuture
to complete.public PgxFuture<java.util.Collection<PgxEdge>> getInEdgesAsync()
public java.util.Collection<PgxVertex<ID>> getInNeighbors()
getInNeighborsAsync()
. Calls getInNeighborsAsync()
and waits for returned PgxFuture
to complete.public PgxFuture<java.util.Collection<PgxVertex<ID>>> getInNeighborsAsync()
public java.util.Set<java.lang.String> getLabels()
getLabelsAsync()
. Calls getLabelsAsync()
and waits for the returned PgxFuture
to complete.public PgxFuture<java.util.Set<java.lang.String>> getLabelsAsync()
java.lang.IllegalStateException
- if no labels exist.public java.util.Collection<PgxVertex<ID>> getNeighbors(Direction direction)
getNeighbors(Direction, boolean)
that keeps all duplicates.public java.util.Collection<PgxVertex<ID>> getNeighbors(Direction direction, boolean removeDuplicates)
getNeighborsAsync(Direction, boolean)
. Calls getNeighbors(Direction, boolean)
and waits for returned PgxFuture
to complete.public PgxFuture<java.util.Collection<PgxVertex<ID>>> getNeighborsAsync(Direction direction, boolean removeDuplicates)
removeDuplicates
- If removeDuplicates is set to true, the resulting collection does not contain any duplicates. Otherwise, if this vertex is connected 'N' times to a vertex 'X', vertex 'X' also appears 'N' times in the results. This method does not guarantee any ordering in the result. This method never returns null.public long getOutDegree()
getOutDegreeAsync()
. Calls getOutDegreeAsync()
and waits for the returned PgxFuture
to complete.public PgxFuture<java.lang.Long> getOutDegreeAsync()
public java.util.Collection<PgxEdge> getOutEdges()
getOutEdges()
. Calls getOutEdges()
and waits for the returned PgxFuture
to complete.public PgxFuture<java.util.Collection<PgxEdge>> getOutEdgesAsync()
public java.util.Collection<PgxVertex<ID>> getOutNeighbors()
getOutNeighborsAsync()
. Calls getOutNeighborsAsync()
and waits for returned PgxFuture
to complete.public PgxFuture<java.util.Collection<PgxVertex<ID>>> getOutNeighborsAsync()