diva.graph.basic
Class BasicGraphModel
java.lang.Object
extended bydiva.graph.AbstractGraphModel
extended bydiva.graph.modular.ModularGraphModel
extended bydiva.graph.modular.MutableModularGraphModel
extended bydiva.graph.modular.BasicModularGraphModel
extended bydiva.graph.basic.BasicGraphModel
- All Implemented Interfaces:
- GraphModel, MutableGraphModel
- public class BasicGraphModel
- extends BasicModularGraphModel
A basic implementation of a mutable graph model that stores its
graph structure as a collection of nodes and edges (as opposed to
an adjacency matrix). This class is a good reference class for how
to use the diva.graph.modular classes and will suffice as a data
structure for simple, throw-away applications (a heavy-weight
application like a schematic editor will probably want to implement
things differently.
- Version:
- $Id: BasicGraphModel.java,v 1.15 2005年07月08日 19:55:03 cxh Exp $
- Author:
- Michael Shilman
- Accepted Rating:
Red
| Methods inherited from class diva.graph.modular.ModularGraphModel |
containsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, nodesAfterEdges, nodesBeforeEdges, outEdges |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface diva.graph.GraphModel |
addGraphListener, containsNode, dispatchGraphEvent, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, nodesAfterEdges, nodesBeforeEdges, outEdges, removeGraphListener, setDispatchEnabled |
BasicGraphModel
public BasicGraphModel()
- Construct an empty graph model.
createComposite
public CompositeNode createComposite(java.lang.Object semanticObject)
- Make a new composite node object.
-
createEdge
public Edge createEdge(java.lang.Object semanticObject)
- Make a new edge object.
-
createNode
public Node createNode(java.lang.Object semanticObject)
- Make a new node object.
-