Class ComputerGraph.ComputerEdge
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerElement
-
- org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerEdge
-
- All Implemented Interfaces:
Edge
,Element
,WrappedEdge<Edge>
,WrappedElement<Element>
- Enclosing class:
- ComputerGraph
public class ComputerGraph.ComputerEdge extends ComputerGraph.ComputerElement implements Edge, WrappedEdge<Edge>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
Edge.Exceptions
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions
-
-
Field Summary
-
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
DEFAULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description ComputerEdge(Edge edge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
getBaseEdge()
Vertex
inVertex()
Get the incoming/head vertex of this edge.Vertex
outVertex()
Get the outgoing/tail vertex of this edge.<V> Iterator<Property<V>>
properties(String... propertyKeys)
Get anIterator
of properties where thepropertyKeys
is meant to be a filter on the available keys.Iterator<Vertex>
vertices(Direction direction)
Retrieve the vertex (or vertices) associated with this edge as defined by the direction.-
Methods inherited from class org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerElement
equals, getBaseElement, graph, hashCode, id, keys, label, property, property, remove, toString, value, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
bothVertices
-
-
-
-
Constructor Detail
-
ComputerEdge
public ComputerEdge(Edge edge)
-
-
Method Detail
-
vertices
public Iterator<Vertex> vertices(Direction direction)
Description copied from interface:Edge
Retrieve the vertex (or vertices) associated with this edge as defined by the direction. If the direction isDirection.BOTH
then the iterator order is:Direction.OUT
thenDirection.IN
.
-
outVertex
public Vertex outVertex()
Description copied from interface:Edge
Get the outgoing/tail vertex of this edge.
-
inVertex
public Vertex inVertex()
Description copied from interface:Edge
Get the incoming/head vertex of this edge.
-
properties
public <V> Iterator<Property<V>> properties(String... propertyKeys)
Description copied from interface:Element
Get anIterator
of properties where thepropertyKeys
is meant to be a filter on the available keys. If no keys are provide then return all the properties.- Specified by:
properties
in interfaceEdge
- Specified by:
properties
in interfaceElement
- Overrides:
properties
in classComputerGraph.ComputerElement
-
getBaseEdge
public Edge getBaseEdge()
- Specified by:
getBaseEdge
in interfaceWrappedEdge<Edge>
-
-