public final class TinkerEdge extends TinkerElement implements Edge
Edge.Exceptions
Modifier and Type | Field and Description |
---|---|
protected Vertex |
inVertex |
protected Vertex |
outVertex |
protected Map<String,Property> |
properties |
id, label, removed
DEFAULT_LABEL
Modifier | Constructor and Description |
---|---|
protected |
TinkerEdge(Object id,
Vertex outVertex,
String label,
Vertex inVertex) |
Modifier and Type | Method and Description |
---|---|
Graph |
graph()
Get the graph that this element is within.
|
Vertex |
inVertex()
Get the incoming/head vertex of this edge.
|
Set<String> |
keys()
Get the keys of the properties associated with this element.
|
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)
Get a
Property for the Element given its key. |
<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.
|
elementAlreadyRemoved, equals, hashCode, id, label
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bothVertices
public <V> Property<V> property(String key, V value)
Element
Element
given its key.public <V> Property<V> property(String key)
Element
Property
for the Element
given its key.
The default implementation calls the raw Element.properties(java.lang.String...)
.public Set<String> keys()
Element
HashSet
.public void remove()
Element
Element
from the graph.public Vertex outVertex()
Edge
public Vertex inVertex()
Edge
public Iterator<Vertex> vertices(Direction direction)
Edge
Direction.BOTH
then the iterator order is: Direction.OUT
then Direction.IN
.public Graph graph()
Element
public <V> Iterator<Property<V>> properties(String... propertyKeys)
Edge
Iterator
of properties.properties
in interface Edge
properties
in interface Element
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.