Class 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$
    Author:
    Michael Shilman
    Pt.AcceptedRating:
    Red
    • Constructor Detail

      • BasicGraphModel

        public BasicGraphModel()
        Construct an empty graph model.
    • Method Detail

      • 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.