net.sourceforge.combean.interfaces.graph.prop
Interface AddNodeGraphProp

Package class diagram package AddNodeGraphProp
All Superinterfaces:
Freezable, Graph
All Known Subinterfaces:
ConstructableGraphProp, ConstructableIndexedGraphProp, ConstructableNumberedGraphProp
All Known Implementing Classes:
DRAGraphAsConstructableNumberedGraph, DRAGraphWithAddVertexIAsGraph, DRAGraphWithEditIAsGraph

public interface AddNodeGraphProp
extends Graph, Freezable

A graph where nodes may be added.


Method Summary
 Node addNode()
          Add a node to the graph.
 void ensureNodeCapacity(int nodeCapacity)
          Reserve storage for a given number of nodes
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.Graph
getEdgeClass, getNodeClass
 
Methods inherited from interface net.sourceforge.combean.interfaces.graph.prop.Freezable
freeze
 

Method Detail

addNode

Node addNode()
Add a node to the graph.

Returns:
the node which has been added.

ensureNodeCapacity

void ensureNodeCapacity(int nodeCapacity)
Reserve storage for a given number of nodes

Parameters:
nodeCapacity - the number of nodes for which memory shall be reserved.