org.progeeks.graph
Class EdgeIdentityGraph

java.lang.Object
  extended by com.phoenixst.plexus.DefaultGraph
      extended by org.progeeks.graph.EdgeIdentityGraph
All Implemented Interfaces:
com.phoenixst.plexus.Graph, com.phoenixst.plexus.ObservableGraph, java.io.Serializable
Direct Known Subclasses:
ClassDependencyGraph, MetaObjectGraph

public class EdgeIdentityGraph
extends com.phoenixst.plexus.DefaultGraph

A DefaultGraph subclass that uses an edge implementation with specific identity properties such that edges can serialized and still found in the graph, etc.. Currently it uses ImmutableIdentityEdge but this could change in the future since that edge has a few limitations.

Version:
$Revision: 1.3 $
Author:
Paul Speed
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.phoenixst.plexus.Graph
com.phoenixst.plexus.Graph.Edge
 
Constructor Summary
EdgeIdentityGraph()
           
EdgeIdentityGraph(com.phoenixst.plexus.Graph g)
           
 
Method Summary
protected  com.phoenixst.plexus.Graph.Edge createEdge(java.lang.Object object, java.lang.Object tail, java.lang.Object head, boolean isDirected, java.lang.Object edgeState)
          Overridden to create an ImmutableIdentityEdge.
 
Methods inherited from class com.phoenixst.plexus.DefaultGraph
addEdge, addEdge, addGraphListener, addNode, adjacentNodes, containsEdge, containsNode, degree, degree, edgeAdded, edgeAdding, edgeRemoved, edgeRemoving, edges, equals, getAdjacentNode, getEdge, getIncidentEdge, getNode, hashCode, incidentEdges, nodeAdded, nodeAdding, nodeRemoved, nodeRemoving, nodes, removeEdge, removeGraphListener, removeNode, toString, traverser
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdgeIdentityGraph

public EdgeIdentityGraph()

EdgeIdentityGraph

public EdgeIdentityGraph(com.phoenixst.plexus.Graph g)
Method Detail

createEdge

protected com.phoenixst.plexus.Graph.Edge createEdge(java.lang.Object object,
                                                     java.lang.Object tail,
                                                     java.lang.Object head,
                                                     boolean isDirected,
                                                     java.lang.Object edgeState)
Overridden to create an ImmutableIdentityEdge.

Overrides:
createEdge in class com.phoenixst.plexus.DefaultGraph


Copyright © 2002-2003 Paul Speed. All Rights Reserved.