net.sourceforge.combean.interfaces.graph.prop
Interface 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.
| Methods inherited from interface net.sourceforge.combean.interfaces.graph.prop.Freezable |
freeze |
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,