ls
Class Vertex

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

public class Vertex
extends java.lang.Object

This represents a Verice is a graph.


Constructor Summary
Vertex(java.lang.Object o)
          Creates a new Vertex.
 
Method Summary
 java.lang.Object getVertex()
          Returns the vertex.
 void print()
          Prints out the vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vertex

public Vertex(java.lang.Object o)
Creates a new Vertex.
Parameters:
o - the object associated to this vertex
Method Detail

getVertex

public java.lang.Object getVertex()
Returns the vertex.
Returns:
o - the object that represents this vertex

print

public void print()
Prints out the vertex. If it is some object that is supported by doing System.out.print it will print out a string representaiton of the vertex, otherwise it will print out a memory address.