Package | Description |
---|---|
lib.easyjava.graph.undirected |
Modifier and Type | Class and Description |
---|---|
class |
UnweightedUndirectedVertex<T>
A vertex of an unweighted undirected graph which stores some data
|
class |
WeightedUndirectedVertex<T>
A vertex of a weighted undirected graph which stores some data
|
Modifier and Type | Method and Description |
---|---|
UndirectedVertex<T> |
UndirectedEdge.getOtherVertex(UndirectedVertex<T> one)
Gets the vertex that this edge connects which is not the one provided
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<UndirectedVertex<T>> |
UndirectedVertex.getAdjacentVertices() |
java.util.Set<UndirectedVertex<T>> |
UndirectedGraph.getVertices() |
UnmodifiablePair<UndirectedVertex<T>,UndirectedVertex<T>> |
UndirectedEdge.getVertices()
Gets the vertices that this edge connects
|
UnmodifiablePair<UndirectedVertex<T>,UndirectedVertex<T>> |
UndirectedEdge.getVertices()
Gets the vertices that this edge connects
|
Modifier and Type | Method and Description |
---|---|
UndirectedVertex<T> |
UndirectedEdge.getOtherVertex(UndirectedVertex<T> one)
Gets the vertex that this edge connects which is not the one provided
|
void |
UndirectedEdge.replaceVertex(UndirectedVertex<T> oldVertex,
UndirectedVertex<T> newVertex)
Replaces one of the vertices this edge connects with a new one
|
void |
UndirectedEdge.replaceVertex(UndirectedVertex<T> oldVertex,
UndirectedVertex<T> newVertex)
Replaces one of the vertices this edge connects with a new one
|