org.matalon.pagerankhits.dataStructures
Class Edge

java.lang.Object
  extended byorg.matalon.pagerankhits.dataStructures.Edge

public class Edge
extends java.lang.Object

This class represents an edge data structure.

Author:
Yonatan Matalon

Field Summary
private  Vertex v1
           
private  Vertex v2
           
 
Constructor Summary
Edge(Vertex v1, Vertex v2)
          Constructor.
 
Method Summary
 Vertex getV1()
           
 Vertex getV2()
           
 void setV1(Vertex v1)
           
 void setV2(Vertex v2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

v1

private Vertex v1

v2

private Vertex v2
Constructor Detail

Edge

public Edge(Vertex v1,
            Vertex v2)
     throws InvalidParameterException
Constructor.

Parameters:
v1 -
v2 -
Throws:
InvalidParameterException
Method Detail

getV1

public Vertex getV1()
Returns:
Returns the v1.

setV1

public void setV1(Vertex v1)
           throws InvalidParameterException
Parameters:
v1 - The v1 to set.
Throws:
InvalidParameterException

getV2

public Vertex getV2()
Returns:
Returns the v2.

setV2

public void setV2(Vertex v2)
           throws InvalidParameterException
Parameters:
v2 - The v2 to set.
Throws:
InvalidParameterException