public class ComputerGraph.ComputerEdge extends ComputerGraph.ComputerElement implements Edge, WrappedEdge<Edge>
Edge.Exceptions
DEFAULT_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 where the propertyKeys is meant to be a filter on the available
keys. |
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, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
bothVertices
public ComputerEdge(Edge edge)
public Iterator<Vertex> vertices(Direction direction)
Edge
Direction.BOTH
then the iterator order is: Direction.OUT
then Direction.IN
.public Vertex outVertex()
Edge
public Vertex inVertex()
Edge
public <V> Iterator<Property<V>> properties(String... propertyKeys)
Element
Iterator
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 Edge
properties
in interface Element
properties
in class ComputerGraph.ComputerElement
public Edge getBaseEdge()
getBaseEdge
in interface WrappedEdge<Edge>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.