T
- the type of the data the vertex storespublic class UnweightedDirectedVertex<T> extends DirectedVertex<T> implements UnweightedVertex<T>
Modifier and Type | Method and Description |
---|---|
DirectedEdge<T> |
connectTo(Vertex<T> target)
Connects the vertex to another in its graph
|
getAdjacentVertices, getEdges, getIncomingAdjacentVertices, getIncomingEdges, getOutgoingAdjacentVertices, getOutgoingEdges, removeAllEdges, removeAllIncomingEdges, removeAllOutgoingEdges, removeFromGraph
fromGraph, fromSameGraphAs
public DirectedEdge<T> connectTo(Vertex<T> target)
UnweightedVertex
connectTo
in interface UnweightedVertex<T>
target
- the vertex to add an edge to