graphlab
Class Edge

java.lang.Object
  extended by graphlab.Edge
Direct Known Subclasses:
PythonGraph.PythonEdge, ScalarEdge, WeightedEdge

public class Edge
extends java.lang.Object

This class represents basic directed edge data

Author:
akyrola

Field Summary
 int from
          The vertex that the edge originates from
 int to
          The vertex that the edge arrives at
 
Constructor Summary
Edge()
          Default constructor
 
Method Summary
 int getFromVertex()
          Get the from vertex
 int getToVertex()
          Get the destination vertex
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

from

public int from
The vertex that the edge originates from


to

public int to
The vertex that the edge arrives at

Constructor Detail

Edge

public Edge()
Default constructor

Method Detail

getFromVertex

public int getFromVertex()
Get the from vertex

Returns:
Vertex at the from

getToVertex

public int getToVertex()
Get the destination vertex

Returns:
Verte at the denstionation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object