protected class AdjacencyListGraph.MyEdge<E> extends AdjacencyListGraph.MyPosition<E> implements Edge<E>
HashTableMap.HashEntry<K,V>
Modifier and Type | Field and Description |
---|---|
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.
|
elem
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString()
Returns a string representation of the edge via a tuple of
vertices.
|
element, setElement
checkKey, entries, findEntry, get, hashValue, isEmpty, keys, put, rehash, remove, size, values
protected AdjacencyListGraph.MyVertex<V>[] endVertices
protected Position<Edge<E>>[] Inc
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 java.lang.String toString()
toString
in class java.lang.Object