public interface JanusGraphEdge extends JanusGraphRelation, org.apache.tinkerpop.gremlin.structure.Edge
JanusGraphVertex
. It extends the functionality provided by Blueprint's Edge
and
is a special case of a JanusGraphRelation
.Edge
,
JanusGraphRelation
,
EdgeLabel
Modifier and Type | Method and Description |
---|---|
default EdgeLabel |
edgeLabel()
Returns the edge label of this edge
|
default JanusGraphVertex |
inVertex() |
JanusGraphVertex |
otherVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Returns the vertex at the opposite end of the edge.
|
default JanusGraphVertex |
outVertex() |
JanusGraphVertex |
vertex(org.apache.tinkerpop.gremlin.structure.Direction dir)
Returns the vertex for the specified direction.
|
default Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction) |
direction, getType, isEdge, isIncidentOn, isLoop, isProperty, longId, value
graph, hasId, id, isLoaded, isNew, isRemoved, property, remove, valueOrNull
default EdgeLabel edgeLabel()
JanusGraphVertex vertex(org.apache.tinkerpop.gremlin.structure.Direction dir)
dir
- Direction of IN or OUTdefault JanusGraphVertex outVertex()
outVertex
in interface org.apache.tinkerpop.gremlin.structure.Edge
default JanusGraphVertex inVertex()
inVertex
in interface org.apache.tinkerpop.gremlin.structure.Edge
JanusGraphVertex otherVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
vertex
- vertex on which this edge is incidentInvalidElementException
- if the edge is not incident on the specified vertexdefault Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction)
vertices
in interface org.apache.tinkerpop.gremlin.structure.Edge
Copyright © 2012–2023. All rights reserved.