net.sourceforge.combean.adapters.drasys.graph
Class DRAGraphWithAddVertexIAsGraph
java.lang.Object
net.sourceforge.combean.adapters.drasys.graph.DRAGraphAsGraph
net.sourceforge.combean.adapters.drasys.graph.DRAGraphWithAddVertexIAsGraph
- All Implemented Interfaces:
- Graph, AddNodeGraphProp, DirectedEdgeNeighborhoodGraphProp, Freezable, GlobalEdgesGraphProp, GlobalNodesGraphProp, IncomingEdgeNeighborhoodGraphProp, NeighborhoodGraphProp, OutgoingEdgeNeighborhoodGraphProp
- Direct Known Subclasses:
- DRAGraphWithEditIAsGraph
public class DRAGraphWithAddVertexIAsGraph
- extends DRAGraphAsGraph
- implements AddNodeGraphProp
Methods inherited from class net.sourceforge.combean.adapters.drasys.graph.DRAGraphAsGraph |
convertToEdge, convertToNode, getAllEdgesIterator, getAllNodesIterator, getDraGraph, getEdgeClass, getEdgeValue, getFirstNode, getIncidentEdges, getIncomingEdges, getNodeClass, getNumEdges, getNumNodes, getOtherNode, getOutgoingEdges, getSecondNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DRAGraphWithAddVertexIAsGraph
public DRAGraphWithAddVertexIAsGraph(drasys.or.graph.AddVertexI draGraph)
- Parameters:
draGraph
-
addNode
public final Node addNode()
- Description copied from interface:
AddNodeGraphProp
- Add a node to the graph.
- Specified by:
addNode
in interface AddNodeGraphProp
- Returns:
- the node which has been added.
ensureNodeCapacity
public final void ensureNodeCapacity(int nodeCapacity)
- Description copied from interface:
AddNodeGraphProp
- Reserve storage for a given number of nodes
- Specified by:
ensureNodeCapacity
in interface AddNodeGraphProp
- Parameters:
nodeCapacity
- the number of nodes for which memory
shall be reserved.
freeze
public final void freeze()
- Description copied from interface:
Freezable
- This method should be called after modifications to the graph
are done. It allows the implementing class to cleanup data structures
which are only needed for the dynamic modification of the graph.
- Specified by:
freeze
in interface Freezable
addDraVertex
protected Node addDraVertex()
throws drasys.or.graph.DuplicateVertexException
- Throws:
drasys.or.graph.DuplicateVertexException
getNewNodeKey
protected Object getNewNodeKey()
- Returns:
- a key for a newly added node