| 
 | datastructures | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.datastructures.HashTable
net.datastructures.AdjacencyListGraph.MyPosition
net.datastructures.AdjacencyListGraph.MyVertex
Implementation of a vertex for an undirected adjacency list graph. Each vertex stores its incidence container and position in the vertex container of the graph.
| Nested Class Summary | 
| Nested classes inherited from class net.datastructures.HashTable | 
| HashTable.DefaultEqualityTester, HashTable.HashEntry | 
| Field Summary | |
| protected  List | IIncidence container of the vertex. | 
| protected  Position | locPosition of the vertex in the vertex container of the graph. | 
| Fields inherited from class net.datastructures.AdjacencyListGraph.MyPosition | 
| elem | 
| Fields inherited from class net.datastructures.HashTable | 
| A, AVAILABLE, n, N, scale, shift, T | 
| Method Summary | |
|  int | degree()Return the degree of a given vertex | 
|  Iterator | incidentEdges()Returns the incident edges on this vertex. | 
|  Position | insertIncidence(Edge e)Inserts an edge into the incidence container of this vertex. | 
|  Position | location()Returns the position of this vertex in the vertex container of the graph. | 
|  void | removeIncidence(Position p)Removes an edge from the incidence container of this vertex. | 
|  void | setLocation(Position p)Sets the position of this vertex in the vertex container of the graph. | 
|  String | toString()Returns a string representation of the element stored at this vertex. | 
| Methods inherited from class net.datastructures.AdjacencyListGraph.MyPosition | 
| element, setElement | 
| Methods inherited from class net.datastructures.HashTable | 
| checkKey, findEntry, get, hashValue, isEmpty, keys, put, rehash, remove, size, values | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface net.datastructures.Position | 
| element | 
| Methods inherited from interface net.datastructures.Map | 
| get, isEmpty, keys, put, remove, size, values | 
| Field Detail | 
protected List I
protected Position loc
| Method Detail | 
public int degree()
public Iterator incidentEdges()
public Position insertIncidence(Edge e)
public void removeIncidence(Position p)
public Position location()
public void setLocation(Position p)
public String toString()
| 
 | datastructures | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||