net.walend.digraph.path
Interface MutableDigraphOfCEPaths
- All Superinterfaces:
- CEDigraph, Digraph, DigraphOfCEPaths, HasState, IndexedCEDigraph, IndexedDigraph
- public interface MutableDigraphOfCEPaths
- extends DigraphOfCEPaths
This class contains mutator methods for a DigraphOfCEPaths.
- Author:
- David Walend dfw1@cornell.edu
Method Summary |
CEPath |
addEdge(java.lang.Object fromNode,
java.lang.Object toNode,
CEPath edge)
If no existing edge is displaced by edge. |
void |
clearEdges()
Remove all the edges from the CEDigraph. |
Methods inherited from interface net.walend.digraph.IndexedDigraph |
containsEdge, containsNode, countInboundEdges, countOutboundEdges, getFromIndices, getFromNodes, getNode, getNodeIndex, getToIndices, getToNodes, indexedEdgeNodeIterator, indexedNodeIterator, nodeCapacity, nodeIndices |
Methods inherited from interface net.walend.digraph.Digraph |
containsEdge, containsNode, containsNodes, countInboundEdges, countOutboundEdges, edgeCount, edgeNodeIterator, getFromNodes, getNodes, getToNodes, isEdgeFree, isEmpty, nodeCount, nodeIterator |
addEdge
public CEPath addEdge(java.lang.Object fromNode,
java.lang.Object toNode,
CEPath edge)
throws NodeMissingException,
EdgeNotUniqueException
- If no existing edge is displaced by edge. Otherwise, return the path that is displaced.
- Throws:
NodeMissingException
- if either node is not in the digraph.
EdgeNotUniqueException
clearEdges
public void clearEdges()
- Remove all the edges from the CEDigraph.
Copyright (c) 2001, 2002, David Walend