public interface PgxVertex
Modifier and Type | Field and Description |
---|---|
static PgxVertex |
NONE
A value indicating the absence of a vertex.
|
Modifier and Type | Method and Description |
---|---|
PgxEdge |
edge()
Get the edge through which this vertex was reached.
|
long |
getDegree()
Get the out-degree of this vertex.
|
VertexSet |
getDownNeighbors()
Get the down-neighbors.
|
long |
getInDegree()
Get the in-degree of this vertex.
|
EdgeSet |
getInEdges()
Returns all incoming edges of this vertex.
|
VertexSet |
getInNeighbors()
Returns all incoming neighbors of this vertex, i.e., all vertices that have an edge to this vertex.
|
VertexSet |
getNeighbors()
Returns all neighbors of this vertex.
|
long |
getOutDegree()
Get the out-degree of this vertex.
|
EdgeSet |
getOutEdges()
Returns all outgoing edges of this vertex.
|
VertexSet |
getOutNeighbors()
Returns all outgoing neighbors of this vertex, i.e., all nodes this vertex has an edge to.
|
PgxVertex |
getRandomInNeighbor()
Return a random incoming neighbor.
|
PgxVertex |
getRandomInOutNeighbor()
Return a random incoming or outgoing neighbor.
|
PgxVertex |
getRandomOutNeighbor()
Return a random outgoing neighbor.
|
VertexSet |
getUpNeighbors()
Get the up-neighbors.
|
boolean |
greaterThan(PgxVertex v)
Check whether this vertex is greater than the given vertex according to the ordering induced on the vertices.
|
boolean |
hasEdgeFrom(PgxVertex v)
Check if there is an edge from the given vertex to this vertex.
|
boolean |
hasEdgeTo(PgxVertex v)
Check if there is an edge from this vertex to the given vertex.
|
boolean |
lessThan(PgxVertex v)
Check whether this vertex is less than the given vertex according to the ordering induced on the vertices.
|
PgxEdge |
parentEdge()
Returns the edge through which this vertex was reached.
|
PgxVertex |
parentVertex()
Returns the vertex that was visited before this vertex.
|
static final PgxVertex NONE
PgxEdge edge()
long getDegree()
VertexSet getDownNeighbors()
long getInDegree()
EdgeSet getInEdges()
VertexSet getInNeighbors()
VertexSet getNeighbors()
long getOutDegree()
EdgeSet getOutEdges()
VertexSet getOutNeighbors()
PgxVertex getRandomInNeighbor()
getRandomOutNeighbor()
.PgxVertex getRandomInOutNeighbor()
getRandomOutNeighbor()
.PgxVertex getRandomOutNeighbor()
VertexSet getUpNeighbors()
boolean greaterThan(PgxVertex v)
v
-boolean hasEdgeFrom(PgxVertex v)
v
-boolean hasEdgeTo(PgxVertex v)
v
-boolean lessThan(PgxVertex v)
v
-PgxEdge parentEdge()
PgxVertex parentVertex()