public final class Neo4jEdge extends Neo4jElement implements Edge, WrappedEdge<Neo4jRelationship>
Edge.ExceptionsbaseElement, graphDEFAULT_LABEL| Constructor and Description |
|---|
Neo4jEdge(Neo4jRelationship relationship,
Neo4jGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
Neo4jRelationship |
getBaseEdge() |
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)
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.
|
equals, getBaseElement, graph, hashCode, id, keysclone, finalize, getClass, notify, notifyAll, wait, wait, waitbothVerticespublic Neo4jEdge(Neo4jRelationship relationship,
Neo4jGraph 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 void remove()
ElementElement from the graph.public String label()
ElementElement which helps categorize it.public Neo4jRelationship getBaseEdge()
getBaseEdge in interface WrappedEdge<Neo4jRelationship>public <V> Iterator<Property<V>> properties(String... propertyKeys)
EdgeIterator of properties.properties in interface Edgeproperties in interface Elementpublic <V> Property<V> property(String key)
ElementProperty for the Element given its key.
The default implementation calls the raw Element.properties(java.lang.String...).Copyright © 2013–2017 Apache Software Foundation. All rights reserved.