|
net.datastructures - version 5.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datastructures.HashTableMap<Object,Object>
net.datastructures.AdjacencyListGraph.MyPosition<E>
net.datastructures.AdjacencyListGraph.MyEdge<E>
protected class AdjacencyListGraph.MyEdge<E>
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/interfaces inherited from class net.datastructures.HashTableMap |
---|
HashTableMap.HashEntry<K,V> |
Field Summary | |
---|---|
protected AdjacencyListGraph.MyVertex<V>[] |
endVertices
The end vertices of the edge. |
protected Position<Edge<E>>[] |
Inc
The positions of the entries for the edge in the incidence containers of the end vertices. |
protected Position<Edge<E>> |
loc
The position of the edge in the edge container of the graph. |
Fields inherited from class net.datastructures.AdjacencyListGraph.MyPosition |
---|
elem |
Fields inherited from class net.datastructures.HashTableMap |
---|
AVAILABLE, bucket, capacity, n, prime, scale, shift |
Method Summary | |
---|---|
AdjacencyListGraph.MyVertex<V>[] |
endVertices()
Returns the end vertices of the edge. |
Position<Edge<E>>[] |
incidences()
Returns the positions of the edge in the incidence containers of its end vertices. |
Position<Edge<E>> |
location()
Returns the position of the edge in the edge container of the graph. |
void |
setIncidences(Position<Edge<E>> pv,
Position<Edge<E>> pw)
Sets the positions of the edge in the incidence containers of its end vertices. |
void |
setLocation(Position<Edge<E>> 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.HashTableMap |
---|
checkKey, entrySet, findEntry, get, hashValue, isEmpty, keySet, 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 |
---|
entrySet, get, isEmpty, keySet, put, remove, size, values |
Field Detail |
---|
protected AdjacencyListGraph.MyVertex<V>[] endVertices
protected Position<Edge<E>>[] Inc
protected Position<Edge<E>> loc
Method Detail |
---|
public AdjacencyListGraph.MyVertex<V>[] endVertices()
public Position<Edge<E>>[] incidences()
public void setIncidences(Position<Edge<E>> pv, Position<Edge<E>> pw)
public Position<Edge<E>> location()
public void setLocation(Position<Edge<E>> p)
public String toString()
toString
in class Object
|
net.datastructures - version 5.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |