public class ReferenceEdge extends ReferenceElement<Edge> implements Edge
Edge.Exceptions
Attachable.Exceptions, Attachable.Method
EMPTY_STRING, id
DEFAULT_LABEL
Constructor and Description |
---|
ReferenceEdge(Edge edge) |
Modifier and Type | Method and Description |
---|---|
Vertex |
inVertex()
Get the incoming/head vertex of this edge.
|
String |
label()
Gets the label for the graph
Element which helps categorize it. |
Vertex |
outVertex()
Get the outgoing/tail vertex of this edge.
|
<V> Iterator<Property<V>> |
properties(String... propertyKeys)
Get an
Iterator of properties. |
<V> Property<V> |
property(String key,
V value)
Add or set a property value for the
Element given its key. |
void |
remove()
Removes the
Element from the graph. |
String |
toString() |
Iterator<Vertex> |
vertices(Direction direction)
Retrieve the vertex (or vertices) associated with this edge as defined by the direction.
|
equals, get, graph, hashCode, id
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bothVertices
graph, id, keys, property, value, values
attach
public ReferenceEdge(Edge edge)
public <V> Property<V> property(String key, V value)
Element
Element
given its key.public void remove()
Element
Element
from the graph.public Iterator<Vertex> vertices(Direction direction)
Edge
Direction.BOTH
then the iterator order is: Direction.OUT
then Direction.IN
.public Vertex inVertex()
Edge
public Vertex outVertex()
Edge
public <V> Iterator<Property<V>> properties(String... propertyKeys)
Edge
Iterator
of properties.properties
in interface Edge
properties
in interface Element
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.