public class DirectedEdgeDataVertex<T> extends AbstractVertex implements EdgeDataVertex<T>
| Constructor and Description |
|---|
DirectedEdgeDataVertex(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.
|
int |
adjacencyCount()
Returns the number of vertices in the adjacency set
|
void |
clearAdjacencies()
Removes all vertices from the adjacency set.
|
boolean |
containsAdjacency(Vertex to)
Returns true if the adjacency set contains the specified vertex
|
java.util.Set<? extends Vertex> |
getAdjacencies()
Returns a set of all adjacent vertices
|
T |
getEdgeData(EdgeDataVertex<T> to)
Get data for a particular edge.
|
boolean |
hasAdjacencies()
Returns true if the vertex is the tail of at least one edge
|
boolean |
removeAdjacency(Vertex to)
Removes the specified vertex from the adjacency set.
|
equals, getGraph, setGraphpublic DirectedEdgeDataVertex(EdgeDataFactory<T> edgeDataFactory)
edgeDataFactory - factory to use for creating new EdgeData objectspublic <V extends Vertex> boolean addAdjacency(V to)
VertexaddAdjacency in interface Vertexto - vertex to be addedpublic boolean removeAdjacency(Vertex to)
VertexremoveAdjacency in interface Vertexto - vertex to be removedpublic void clearAdjacencies()
VertexclearAdjacencies in interface Vertexpublic final boolean containsAdjacency(Vertex to)
VertexcontainsAdjacency in interface Vertexto - vertex whose presence is to be testedpublic final int adjacencyCount()
VertexadjacencyCount in interface Vertexpublic final java.util.Set<? extends Vertex> getAdjacencies()
VertexgetAdjacencies in interface Vertexpublic final boolean hasAdjacencies()
VertexhasAdjacencies in interface Vertexpublic T getEdgeData(EdgeDataVertex<T> to)
EdgeDataVertexgetEdgeData in interface EdgeDataVertex<T>to - head of the edge for which to retrieve data