java.lang.Object
org.jgrapht.graph.DefaultGraphIterables<V,E>
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
GraphIterables<V,E>
public class DefaultGraphIterables<V,E> extends java.lang.Object implements GraphIterables<V,E>
The default implementation of the graph iterables which simply delegates to the set
implementations.
- Author:
- Dimitrios Michail
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DefaultGraphIterables()
Create new graph iterablesDefaultGraphIterables(Graph<V,E> graph)
Create new graph iterables -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jgrapht.GraphIterables
allEdges, degreeOf, edgeCount, edges, edgesOf, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, vertexCount, vertices
-
Field Details
-
graph
The underlying graph
-
-
Constructor Details
-
DefaultGraphIterables
public DefaultGraphIterables()Create new graph iterables -
DefaultGraphIterables
Create new graph iterables- Parameters:
graph
- the underlying graph
-
-
Method Details
-
getGraph
Description copied from interface:GraphIterables
Get the underlying graph.- Specified by:
getGraph
in interfaceGraphIterables<V,E>
- Returns:
- the underlying graph
-