Package org.jgrapht.traverse
Class AbstractGraphIterator.DirectedSpecifics<VV,EE>
- java.lang.Object
-
- org.jgrapht.traverse.AbstractGraphIterator.Specifics<VV,EE>
-
- org.jgrapht.traverse.AbstractGraphIterator.DirectedSpecifics<VV,EE>
-
- Enclosing class:
- AbstractGraphIterator<V,E>
static class AbstractGraphIterator.DirectedSpecifics<VV,EE> extends AbstractGraphIterator.Specifics<VV,EE>
An implementation ofAbstractGraphIterator.Specifics
for a directed graph.
-
-
Field Summary
Fields Modifier and Type Field Description private DirectedGraph<VV,EE>
graph
-
Constructor Summary
Constructors Constructor Description DirectedSpecifics(DirectedGraph<VV,EE> g)
Creates a new DirectedSpecifics object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<? extends EE>
edgesOf(VV vertex)
Returns the edges outgoing from the specified vertex in case of directed graph, and the edge touching the specified vertex in case of undirected graph.
-
-
-
Field Detail
-
graph
private DirectedGraph<VV,EE> graph
-
-
Constructor Detail
-
DirectedSpecifics
public DirectedSpecifics(DirectedGraph<VV,EE> g)
Creates a new DirectedSpecifics object.- Parameters:
g
- the graph for which this specifics object to be created.
-
-
Method Detail
-
edgesOf
public java.util.Set<? extends EE> edgesOf(VV vertex)
Description copied from class:AbstractGraphIterator.Specifics
Returns the edges outgoing from the specified vertex in case of directed graph, and the edge touching the specified vertex in case of undirected graph.- Specified by:
edgesOf
in classAbstractGraphIterator.Specifics<VV,EE>
- Parameters:
vertex
- the vertex whose outgoing edges are to be returned.- Returns:
- the edges outgoing from the specified vertex in case of directed graph, and the edge touching the specified vertex in case of undirected graph.
- See Also:
AbstractGraphIterator.Specifics.edgesOf(Object)
-
-