diva.graph.basic
Class BasicGraphModel
java.lang.Object
diva.graph.AbstractGraphModel
diva.graph.modular.ModularGraphModel
diva.graph.modular.MutableModularGraphModel
diva.graph.modular.BasicModularGraphModel
diva.graph.basic.BasicGraphModel
- All Implemented Interfaces:
- GraphModel, MutableGraphModel
- Direct Known Subclasses:
- SchematicGraphModel
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 probalby want to implement
things differently.
- Version:
- $Revision: 1.16 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu)
Methods inherited from class diva.graph.modular.ModularGraphModel |
containsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, 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, outEdges, removeGraphListener, setDispatchEnabled |
BasicGraphModel
public BasicGraphModel()
- Construct an empty graph model.
createComposite
public CompositeNode createComposite(Object semanticObject)
- Make a new composite node object.
createEdge
public Edge createEdge(Object semanticObject)
- Make a new edge object.
createNode
public Node createNode(Object semanticObject)
- Make a new node object.
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.