java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceElement<Edge>
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceEdge
All Implemented Interfaces:
Serializable, Edge, Element, Attachable<Edge>

public class ReferenceEdge extends ReferenceElement<Edge> implements Edge
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
  • Constructor Details

  • Method Details

    • property

      public <V> Property<V> property(String key, V value)
      Description copied from interface: Element
      Add or set a property value for the Element given its key.
      Specified by:
      property in interface Element
    • remove

      public void remove()
      Description copied from interface: Element
      Removes the Element from the graph.
      Specified by:
      remove in interface Element
    • 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
    • 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
    • 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
    • properties

      public <V> Iterator<Property<V>> properties(String... propertyKeys)
      Description copied from interface: Edge
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object