Class Vertex

java.lang.Object
  extended by Vertex

public class Vertex
extends java.lang.Object


Field Summary
(package private)  java.util.LinkedList<Vertex> connect
           
(package private)  boolean known
           
(package private)  int vert
           
 
Constructor Summary
Vertex(int vert)
          Initializes stuff
 
Method Summary
 void connect(Vertex v)
          Add v to the list of connections
 boolean connected(Vertex v)
          Are v and this connected?
 void disconnect(Vertex v)
          Remove v from the list of connections
 java.lang.String toString()
          Show the connections of this vertex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vert

int vert

known

boolean known

connect

java.util.LinkedList<Vertex> connect
Constructor Detail

Vertex

public Vertex(int vert)
Initializes stuff

Parameters:
vert - The number of this Vertex
Method Detail

connect

public void connect(Vertex v)
Add v to the list of connections

Parameters:
v -

disconnect

public void disconnect(Vertex v)
Remove v from the list of connections

Parameters:
v -

toString

public java.lang.String toString()
Show the connections of this vertex

Overrides:
toString in class java.lang.Object

connected

public boolean connected(Vertex v)
Are v and this connected?

Parameters:
v -
Returns: