Package org.jgrapht.traverse
Class AbstractGraphIterator.UndirectedSpecifics<VV,EE>
- java.lang.Object
-
- org.jgrapht.traverse.AbstractGraphIterator.Specifics<VV,EE>
-
- org.jgrapht.traverse.AbstractGraphIterator.UndirectedSpecifics<VV,EE>
-
- Enclosing class:
- AbstractGraphIterator<V,E>
static class AbstractGraphIterator.UndirectedSpecifics<VV,EE> extends AbstractGraphIterator.Specifics<VV,EE>
An implementation ofAbstractGraphIterator.Specifics
in which edge direction (if any) is ignored.
-
-
Constructor Summary
Constructors Constructor Description UndirectedSpecifics(Graph<VV,EE> g)
Creates a new UndirectedSpecifics object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<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.
-
-
-
Method Detail
-
edgesOf
public java.util.Set<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)
-
-