|
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.MyEdge
Implementation of an edge for an undirected adjacency list graph. Each edge stores its endpoints (end vertices), its positions within the incidence containers of its endpoints, and position in the edge container of the graph.
Nested Class Summary |
Nested classes inherited from class net.datastructures.HashTable |
HashTable.DefaultEqualityTester, HashTable.HashEntry |
Field Summary | |
protected Position[] |
I
The positions of the entries for the edge in the incidence containers of the end vertices. |
protected Position |
loc
The position of the edge in the edge container of the graph. |
protected AdjacencyListGraph.MyVertex[] |
V
The end vertices of the edge. |
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 | |
AdjacencyListGraph.MyVertex[] |
endVertices()
Returns the end vertices of the edge. |
Position[] |
incidences()
Returns the positions of the edge in the incidence containers of its end vertices. |
Position |
location()
Returns the position of the edge in the edge container of the graph. |
void |
setIncidences(Position pv,
Position pw)
Sets the positions of the edge in the incidence containers of its end vertices. |
void |
setLocation(Position p)
Sets the position of the edge in the edge container of the graph. |
String |
toString()
Returns a string representation of the edge via a tuple of vertices. |
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 AdjacencyListGraph.MyVertex[] V
protected Position[] I
protected Position loc
Method Detail |
public AdjacencyListGraph.MyVertex[] endVertices()
public Position[] incidences()
public void setIncidences(Position pv, Position pw)
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 |