T
- the type of the data the vertex storespublic abstract class UndirectedVertex<T> extends Vertex<T>
Modifier and Type | Method and Description |
---|---|
java.util.Set<UndirectedVertex<T>> |
getAdjacentVertices()
Gets all the vertices adjacent to this one.
|
java.util.Set<UndirectedEdge<T>> |
getEdges()
Gets all the edges connected to this vertex.
|
void |
removeAllEdges()
Removes all the edges connected to this vertex from the graph
|
void |
removeFromGraph()
Removes this component from the graph it is a part of.
|
fromGraph, fromSameGraphAs
public java.util.Set<UndirectedVertex<T>> getAdjacentVertices()
Vertex
getAdjacentVertices
in class Vertex<T>
public java.util.Set<UndirectedEdge<T>> getEdges()
Vertex
public void removeAllEdges()
Vertex
removeAllEdges
in class Vertex<T>
public void removeFromGraph()
GraphComponent
removeFromGraph
in class GraphComponent