public class UndirectedSimpleVertex extends DirectedSimpleVertex
| Constructor and Description |
|---|
UndirectedSimpleVertex()
Default constructor initializes graph to null and creates an empty adjacency list
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Vertex> |
addAdjacency(T to)
Adds the specified vertex to the set of adjacencies.
|
void |
clearAdjacencies()
Removes all vertices from the adjacency set.
|
boolean |
removeAdjacency(Vertex to)
Removes the specified vertex from the adjacency set.
|
adjacencyCount, containsAdjacency, getAdjacencies, hasAdjacenciesequals, getGraph, setGraphpublic UndirectedSimpleVertex()
public final <T extends Vertex> boolean addAdjacency(T to)
VertexaddAdjacency in interface VertexaddAdjacency in class DirectedSimpleVertexto - vertex to be addedpublic final boolean removeAdjacency(Vertex to)
VertexremoveAdjacency in interface VertexremoveAdjacency in class DirectedSimpleVertexto - vertex to be removedpublic final void clearAdjacencies()
VertexclearAdjacencies in interface VertexclearAdjacencies in class DirectedSimpleVertex