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, removedDEFAULT_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, labelclone, finalize, getClass, notify, notifyAll, wait, wait, waitbothVerticespublic <V> Property<V> property(String key, V value)
ElementElement given its key.public <V> Property<V> property(String key)
ElementProperty for the Element given its key.
The default implementation calls the raw Element.properties(java.lang.String...).public Set<String> keys()
ElementHashSet.public void remove()
ElementElement from the graph.public Vertex outVertex()
Edgepublic Vertex inVertex()
Edgepublic Iterator<Vertex> vertices(Direction direction)
EdgeDirection.BOTH then the iterator order is: Direction.OUT then Direction.IN.public Graph graph()
Elementpublic <V> Iterator<Property<V>> properties(String... propertyKeys)
EdgeIterator of properties.properties in interface Edgeproperties in interface ElementCopyright © 2013–2016 Apache Software Foundation. All rights reserved.