com.arsdigita.util
Class GraphEdge

java.lang.Object
  extended bycom.arsdigita.util.GraphEdge
All Implemented Interfaces:
Graph.Edge

public final class GraphEdge
extends Object
implements Graph.Edge

Graph edge.

Since:
2003-01-22
Version:
$Revision: #5 $ $Date: 2004/04/07 $
Author:
Archit Shah (ashah@mit.edut), Vadim Nasardinov (vadimn@redhat.com)

Constructor Summary
GraphEdge(Object tail, Object head, Object label)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object getHead()
          Returns the head node of the edge.
 Object getLabel()
          Returns the label associated with this edge.
 Object getTail()
          Returns the tail node of the edge.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphEdge

public GraphEdge(Object tail,
                 Object head,
                 Object label)
Method Detail

getTail

public Object getTail()
Description copied from interface: Graph.Edge
Returns the tail node of the edge.

Specified by:
getTail in interface Graph.Edge
See Also:
Graph.Edge.getHead()

getHead

public Object getHead()
Description copied from interface: Graph.Edge
Returns the head node of the edge.

Specified by:
getHead in interface Graph.Edge
See Also:
Graph.Edge.getTail()

getLabel

public Object getLabel()
Description copied from interface: Graph.Edge
Returns the label associated with this edge. The label can be anything, depending on your particular graph. For example, if your nodes represent cities and edges represent freeways, then the label can be an Float representing the the distance (the length of the route).

Specified by:
getLabel in interface Graph.Edge

toString

public String toString()

equals

public boolean equals(Object obj)

hashCode

public int hashCode()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC