edu.stanford.multiagent.gamer.graphs
Class Edge

java.lang.Object
  |
  +--edu.stanford.multiagent.gamer.graphs.Edge

public class Edge
extends java.lang.Object

Implements an Edge data structure for graphs. Any Object can be stored in the edge


Constructor Summary
Edge(int from, int to)
           
 
Method Summary
 java.lang.Object getData()
           
 int getDest()
           
 int getSource()
           
 void setData(java.lang.Object d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(int from,
            int to)
Method Detail

getSource

public int getSource()

getDest

public int getDest()

getData

public java.lang.Object getData()

setData

public void setData(java.lang.Object d)