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

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

public interface AddEdgeGraphProp
extends Graph, Freezable

A graph where edges may be added.


Method Summary
 Edge addEdge(Node from, Node to)
          Add an edge between two given nodes.
 void ensureEdgeCapacity(int edgeCapacity)
          Reserve storage for given number of edges.
 
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

addEdge

Edge addEdge(Node from,
             Node to)
Add an edge between two given nodes.

Parameters:
from - the source node of the edge.
to - the target node of the edge.
Returns:
the edge which has been inserted into the graph.

ensureEdgeCapacity

void ensureEdgeCapacity(int edgeCapacity)
Reserve storage for given number of edges.

Parameters:
edgeCapacity - the number of edges for which memory shall be reserved,