public interface DirectedGraph<V,E> extends Graph<V,E>
See http://mathworld.wolfram.com/DirectedGraph.html for more on directed graphs.
Modifier and Type | Method and Description |
---|---|
Set<E> |
incomingEdgesOf(V vertex)
Returns a set of all edges incoming into the specified vertex.
|
int |
inDegreeOf(V vertex)
Returns the "in degree" of the specified vertex.
|
int |
outDegreeOf(V vertex)
Returns the "out degree" of the specified vertex.
|
Set<E> |
outgoingEdgesOf(V vertex)
Returns a set of all edges outgoing from the specified vertex.
|
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
int inDegreeOf(V vertex)
vertex
- vertex whose degree is to be calculated.Set<E> incomingEdgesOf(V vertex)
vertex
- the vertex for which the list of incoming edges to be
returned.int outDegreeOf(V vertex)
vertex
- vertex whose degree is to be calculated.Copyright © 2016. All rights reserved.