org.jscience.computing.graph.graphs
Class UnmodifiableUndirectedGraph

java.lang.Object
  extended by org.jscience.computing.graph.graphs.AbstractGraph
      extended by org.jscience.computing.graph.graphs.GraphDelegator
          extended by org.jscience.computing.graph.graphs.UnmodifiableGraph
              extended by org.jscience.computing.graph.graphs.UnmodifiableUndirectedGraph
All Implemented Interfaces:
java.io.Serializable, Graph, UndirectedGraph

public class UnmodifiableUndirectedGraph
extends UnmodifiableGraph
implements UndirectedGraph

An undirected graph that cannot be modified.

See Also:
UnmodifiableGraph, Serialized Form

Constructor Summary
UnmodifiableUndirectedGraph(UndirectedGraph g)
          Creates a new unmodifiable undirected graph based on the specified backing graph.
 
Method Summary
 
Methods inherited from class org.jscience.computing.graph.graphs.UnmodifiableGraph
addAllEdges, addAllVertices, addEdge, addEdge, addVertex, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex
 
Methods inherited from class org.jscience.computing.graph.graphs.GraphDelegator
containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf, toString, vertexSet
 
Methods inherited from class org.jscience.computing.graph.graphs.AbstractGraph
assertVertexExist, containsEdge, removeAllEdges, toStringFromSets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jscience.computing.graph.UndirectedGraph
degreeOf
 
Methods inherited from interface org.jscience.computing.graph.Graph
addAllEdges, addAllVertices, addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
 

Constructor Detail

UnmodifiableUndirectedGraph

public UnmodifiableUndirectedGraph(UndirectedGraph g)
Creates a new unmodifiable undirected graph based on the specified backing graph.

Parameters:
g - the backing graph on which an unmodifiable graph is to be created.