net.ggtools.grand.graph
Interface SubGraph

All Superinterfaces:
NodeContainer
All Known Implementing Classes:
SubGraphImpl

public interface SubGraph
extends NodeContainer

Interface to be implemented by classes providing the subgraph feature. A subgraph is a named node container which is primarily used as a storage helper by graphs. Compared to a graph, a subgraph lacks the factory/manager feature as well as the possibility to hierarchically store nodes using containers like subgraphs.

Author:
Christophe Labouisse

Method Summary
 void addNode(Node node)
          Add a new node to the container.
 java.lang.String getName()
          Returns the graph's name.
 
Methods inherited from interface net.ggtools.grand.graph.NodeContainer
getNode, getNodes, hasNode
 

Method Detail

addNode

void addNode(Node node)
             throws DuplicateElementException
Add a new node to the container.

Parameters:
node - Node to be added.
Throws:
DuplicateElementException - if a node with the same name already exists in the container.

getName

java.lang.String getName()
Returns the graph's name.

Returns:
graph's name.


Copyright © 2004-2005 ggTools. All Rights Reserved.