|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectVertex
public class Vertex
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 |
---|
int vert
boolean known
java.util.LinkedList<Vertex> connect
Constructor Detail |
---|
public Vertex(int vert)
vert
- The number of this VertexMethod Detail |
---|
public void connect(Vertex v)
v
- public void disconnect(Vertex v)
v
- public java.lang.String toString()
toString
in class java.lang.Object
public boolean connected(Vertex v)
v
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |