Class ComputerGraph.ComputerEdge

java.lang.Object
org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerElement
org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerEdge
All Implemented Interfaces:
Edge, Element, WrappedEdge<Edge>, WrappedElement<Element>
Enclosing class:
ComputerGraph

public class ComputerGraph.ComputerEdge extends ComputerGraph.ComputerElement implements Edge, WrappedEdge<Edge>
  • Constructor Details

    • ComputerEdge

      public ComputerEdge(Edge edge)
  • Method Details

    • vertices

      public Iterator<Vertex> vertices(Direction direction)
      Description copied from interface: Edge
      Retrieve the vertex (or vertices) associated with this edge as defined by the direction. If the direction is Direction.BOTH then the iterator order is: Direction.OUT then Direction.IN.
      Specified by:
      vertices in interface Edge
      Parameters:
      direction - Get the incoming vertex, outgoing vertex, or both vertices
      Returns:
      An iterator with 1 or 2 vertices
    • outVertex

      public Vertex outVertex()
      Description copied from interface: Edge
      Get the outgoing/tail vertex of this edge.
      Specified by:
      outVertex in interface Edge
      Returns:
      the outgoing vertex of the edge
    • inVertex

      public Vertex inVertex()
      Description copied from interface: Edge
      Get the incoming/head vertex of this edge.
      Specified by:
      inVertex in interface Edge
      Returns:
      the incoming vertex of the edge
    • properties

      public <V> Iterator<Property<V>> properties(String... propertyKeys)
      Description copied from interface: Element
      Get an 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.
      Specified by:
      properties in interface Edge
      Specified by:
      properties in interface Element
      Overrides:
      properties in class ComputerGraph.ComputerElement
    • getBaseEdge

      public Edge getBaseEdge()
      Specified by:
      getBaseEdge in interface WrappedEdge<Edge>