Class EdgeDirection

Object
org.apache.spark.graphx.EdgeDirection
All Implemented Interfaces:
Serializable, scala.Serializable

public class EdgeDirection extends Object implements scala.Serializable
The direction of a directed edge relative to a vertex.
See Also:
  • Constructor Details

    • EdgeDirection

      public EdgeDirection()
  • Method Details

    • In

      public static final EdgeDirection In()
      Edges arriving at a vertex.
    • Out

      public static final EdgeDirection Out()
      Edges originating from a vertex.
    • Either

      public static final EdgeDirection Either()
      Edges originating from *or* arriving at a vertex of interest.
    • Both

      public static final EdgeDirection Both()
      Edges originating from *and* arriving at a vertex of interest.
    • reverse

      public EdgeDirection reverse()
      Reverse the direction of an edge. An in becomes out, out becomes in and both and either remain the same.
      Returns:
      (undocumented)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object