T
- the type of the data the vertex storespublic class UnweightedUndirectedVertex<T> extends UndirectedVertex<T> implements UnweightedVertex<T>
Modifier and Type | Method and Description |
---|---|
UndirectedEdge<T> |
connectTo(Vertex<T> target)
Connects the vertex to another in its graph
|
getAdjacentVertices, getEdges, removeAllEdges, removeFromGraph
fromGraph, fromSameGraphAs
public UndirectedEdge<T> connectTo(Vertex<T> target)
UnweightedVertex
connectTo
in interface UnweightedVertex<T>
target
- the vertex to add an edge to