easik.sketch
Class DefaultDirectedMultigraph<V,E>

java.lang.Object
  extended by org.jgrapht.graph.AbstractGraph<V,E>
      extended by org.jgrapht.graph.AbstractBaseGraph<V,E>
          extended by easik.sketch.DefaultDirectedMultigraph<V,E>
Type Parameters:
V - Vector
E - Edge
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.jgrapht.DirectedGraph<V,E>, org.jgrapht.Graph<V,E>

public class DefaultDirectedMultigraph<V,E>
extends org.jgrapht.graph.AbstractBaseGraph<V,E>
implements org.jgrapht.DirectedGraph<V,E>

This class is the same as DefaultDirectedGraph but changed to support multiple edges between two nodes

Since:
2006-08-15 Kevin Green
Version:
2006-05-23 Kevin Green
Author:
Kevin Green 2006
See Also:
Serialized Form

Constructor Summary
DefaultDirectedMultigraph(java.lang.Class<? extends E> edgeClass)
          Creates a new directed graph.
DefaultDirectedMultigraph(org.jgrapht.EdgeFactory<V,E> ef)
          Creates a new directed graph with the specified edge factory.
 
Method Summary
 
Methods inherited from class org.jgrapht.graph.AbstractBaseGraph
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSetFactory, setEdgeWeight, vertexSet
 
Methods inherited from class org.jgrapht.graph.AbstractGraph
assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jgrapht.DirectedGraph
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf
 
Methods inherited from interface org.jgrapht.Graph
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
 

Constructor Detail

DefaultDirectedMultigraph

public DefaultDirectedMultigraph(java.lang.Class<? extends E> edgeClass)
Creates a new directed graph.

Parameters:
edgeClass - class on which to base factory for edges

DefaultDirectedMultigraph

public DefaultDirectedMultigraph(org.jgrapht.EdgeFactory<V,E> ef)
Creates a new directed graph with the specified edge factory.

Parameters:
ef - the edge factory of the new graph.