Logo Search packages:      
Sourcecode: libjgrapht-java version File versions  Download package

org::_3pq::jgrapht::graph::UnmodifiableGraph Class Reference

Inheritance diagram for org::_3pq::jgrapht::graph::UnmodifiableGraph:

org::_3pq::jgrapht::graph::GraphDelegator org::_3pq::jgrapht::graph::AbstractGraph org::_3pq::jgrapht::Graph org::_3pq::jgrapht::Graph org::_3pq::jgrapht::graph::UnmodifiableDirectedGraph org::_3pq::jgrapht::graph::UnmodifiableUndirectedGraph

List of all members.


Detailed Description

An unmodifiable view of the backing graph specified in the constructor. This graph allows modules to provide users with "read-only" access to internal graphs. Query operations on this graph "read through" to the backing graph, and attempts to modify this graph result in an UnsupportedOperationException.

This graph does not pass the hashCode and equals operations through to the backing graph, but relies on Object's equals and hashCode methods. This graph will be serializable if the backing graph is serializable.

Author:
Barak Naveh
Since:
Jul 24, 2003

Definition at line 67 of file UnmodifiableGraph.java.


Public Member Functions

boolean addAllEdges (Collection edges)
boolean addAllVertices (Collection vertices)
Edge addEdge (Object sourceVertex, Object targetVertex)
boolean addEdge (Edge e)
boolean addVertex (Object v)
boolean containsEdge (Object sourceVertex, Object targetVertex)
boolean containsEdge (Edge e)
boolean containsVertex (Object v)
int degreeOf (Object vertex)
Set edgeSet ()
List edgesOf (Object vertex)
List getAllEdges (Object sourceVertex, Object targetVertex)
Edge getEdge (Object sourceVertex, Object targetVertex)
EdgeFactory getEdgeFactory ()
List incomingEdgesOf (Object vertex)
int inDegreeOf (Object vertex)
int outDegreeOf (Object vertex)
List outgoingEdgesOf (Object vertex)
List removeAllEdges (Object sourceVertex, Object targetVertex)
boolean removeAllEdges (Collection edges)
boolean removeAllVertices (Collection vertices)
Edge removeEdge (Object sourceVertex, Object targetVertex)
boolean removeEdge (Edge e)
boolean removeVertex (Object v)
String toString ()
 UnmodifiableGraph (Graph g)
Set vertexSet ()

Protected Member Functions

boolean assertVertexExist (Object v)
boolean removeAllEdges (Edge[] edges)
String toStringFromSets (Collection vertexSet, Collection edgeSet)

Static Private Attributes

static final long serialVersionUID = 3544957670722713913L
static final String UNMODIFIABLE = "this graph is unmodifiable"

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index