Graph
Class Vertex

java.lang.Object
  |
  +--Graph.Vertex

public class Vertex
extends Object

Represents a vertex in the graph...in this case a City name. Could be generalized.


Field Summary
private  String name
           
 
Constructor Summary
Vertex(String name)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

private String name
Constructor Detail

Vertex

public Vertex(String name)
Method Detail

toString

public String toString()
Overrides:
toString in class Object