org.apache.spark.graphx
Class EdgeDirection

Object
  extended by org.apache.spark.graphx.EdgeDirection
All Implemented Interfaces:
java.io.Serializable

public class EdgeDirection
extends Object
implements scala.Serializable

The direction of a directed edge relative to a vertex.

See Also:
Serialized Form

Method Summary
static EdgeDirection Both()
          Edges originating from *and* arriving at a vertex of interest.
static EdgeDirection Either()
          Edges originating from *or* arriving at a vertex of interest.
 boolean equals(Object o)
           
 int hashCode()
           
static EdgeDirection In()
          Edges arriving at a vertex.
static EdgeDirection Out()
          Edges originating from a vertex.
 EdgeDirection reverse()
          Reverse the direction of an edge.
 String toString()
           
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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