public class DetachedEdge extends DetachedElement<Edge> implements Edge
Edge that is disconnected from a Graph.  "Disconnection" can mean detachment from
 a Graph in the sense that the Edge was constructed from a Graph instance and this reference
 was removed or it can mean that the DetachedEdge could have been constructed independently of a
 Graph instance in the first place.
 
 A DetachedEdge only has reference to the properties and in/out vertices that are associated with it at the
 time of detachment (or construction) and is not traversable or mutable.  Note that the references to the in/out
 vertices are DetachedVertex instances that only have reference to the
 Element.id() and Element.label().| Modifier and Type | Class and Description | 
|---|---|
| static class  | DetachedEdge.Builder | 
Edge.ExceptionsAttachable.Exceptions, Attachable.Methodid, label, propertiesDEFAULT_LABEL| Modifier | Constructor and Description | 
|---|---|
| protected  | DetachedEdge(Edge edge,
            boolean withProperties) | 
|   | DetachedEdge(Object id,
            String label,
            Map<String,Object> properties,
            Object outVId,
            String outVLabel,
            Object inVId,
            String inVLabel) | 
| Modifier and Type | Method and Description | 
|---|---|
| static DetachedEdge.Builder | build()Provides a way to construct an immutable  DetachedEdge. | 
| 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 an  Iteratorof properties where thepropertyKeysis meant to be a filter on the available
 keys. | 
| void | remove()Removes the  Elementfrom 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, label, property, propertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitbothVerticesgraph, id, keys, label, property, property, value, valuesattachprotected DetachedEdge(Edge edge, boolean withProperties)
public Vertex inVertex()
Edgepublic Vertex outVertex()
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 <V> Iterator<Property<V>> properties(String... propertyKeys)
ElementIterator of properties where the propertyKeys is meant to be a filter on the available
 keys. If no keys are provide then return all the properties.properties in interface Edgeproperties in interface Elementproperties in class DetachedElement<Edge>public static DetachedEdge.Builder build()
DetachedEdge.Copyright © 2013–2019 Apache Software Foundation. All rights reserved.