public class ComputerGraph.ComputerEdge extends ComputerGraph.ComputerElement implements Edge, WrappedEdge<Edge>
Edge.ExceptionsDEFAULT_LABEL| Constructor and Description |
|---|
ComputerEdge(Edge edge) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
getBaseEdge() |
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
Iterator of properties. |
Iterator<Vertex> |
vertices(Direction direction)
Retrieve the vertex (or vertices) associated with this edge as defined by the direction.
|
equals, getBaseElement, graph, hashCode, id, keys, label, property, property, remove, toString, value, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitbothVerticespublic ComputerEdge(Edge edge)
public Iterator<Vertex> vertices(Direction direction)
EdgeDirection.BOTH then the iterator order is: Direction.OUT then Direction.IN.public Vertex outVertex()
Edgepublic Vertex inVertex()
Edgepublic <V> Iterator<Property<V>> properties(String... propertyKeys)
ElementIterator of properties.properties in interface Edgeproperties in interface Elementproperties in class ComputerGraph.ComputerElementpublic Edge getBaseEdge()
getBaseEdge in interface WrappedEdge<Edge>Copyright © 2013–2017 Apache Software Foundation. All rights reserved.