public class UndirectedEdgeDataVertex<T> extends DirectedEdgeDataVertex<T>
Constructor and Description |
---|
UndirectedEdgeDataVertex(EdgeDataFactory<T> edgeDataFactory)
Constructor from an EdgeDataFactory
|
Modifier and Type | Method and Description |
---|---|
<V extends Vertex> |
addAdjacency(V 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, getEdgeData, hasAdjacencies
equals, getGraph, setGraph
public UndirectedEdgeDataVertex(EdgeDataFactory<T> edgeDataFactory)
edgeDataFactory
- factory to use for creating new EdgeData objectspublic final <V extends Vertex> boolean addAdjacency(V to)
Vertex
addAdjacency
in interface Vertex
addAdjacency
in class DirectedEdgeDataVertex<T>
to
- vertex to be addedpublic final boolean removeAdjacency(Vertex to)
Vertex
removeAdjacency
in interface Vertex
removeAdjacency
in class DirectedEdgeDataVertex<T>
to
- vertex to be removedpublic final void clearAdjacencies()
Vertex
clearAdjacencies
in interface Vertex
clearAdjacencies
in class DirectedEdgeDataVertex<T>