diva.graph.modular
Interface Graph

All Superinterfaces:
PropertyContainer, SemanticObjectContainer
All Known Subinterfaces:
CompositeNode
All Known Implementing Classes:
BasicGraphModel.BasicCompositeNode

public interface Graph
extends SemanticObjectContainer, PropertyContainer

A graph is an object that contains nodes and edges. Edges are accessed through the nodes that they connect.

Version:
$Id: Graph.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman
Accepted Rating:
Red

Method Summary
 int getNodeCount()
          Return a count of the nodes this graph contains.
 java.util.Iterator nodes()
          Return an iterator over the nodes that this graph contains.
 
Methods inherited from interface diva.util.SemanticObjectContainer
getSemanticObject, setSemanticObject
 
Methods inherited from interface diva.util.PropertyContainer
getProperty, propertyNames, setProperty
 

Method Detail

nodes

java.util.Iterator nodes()
Return an iterator over the nodes that this graph contains.


getNodeCount

int getNodeCount()
Return a count of the nodes this graph contains.