edu.ucdenver.ccp.esm
Class Edge

java.lang.Object
  extended by edu.ucdenver.ccp.esm.Edge

public class Edge
extends Object

Definition of Edge for dependency graphs

Edge is then fed into graphs of the JUNG library

The Edge definition can be modified based on one's own needs

Author:
Implemented by Haibin Liu and Tested by Philippe Thomas

Constructor Summary
Edge(Vertex gov, String label, Vertex dep)
          Construtor to initialize the class field
 
Method Summary
 Vertex getDependent()
          retrieve dependent node of the edge
 Vertex getGovernor()
          retrieve governor node of the edge
 String getLabel()
          retrieve edge label
 String toString()
          print edge content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Vertex gov,
            String label,
            Vertex dep)
Construtor to initialize the class field

Method Detail

getDependent

public Vertex getDependent()
retrieve dependent node of the edge

Returns:
dependent node

getGovernor

public Vertex getGovernor()
retrieve governor node of the edge

Returns:
governor node

getLabel

public String getLabel()
retrieve edge label

Returns:
edge label

toString

public String toString()
print edge content

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.