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

Field Summary
 
Fields inherited from interface net.walend.digraph.CEDigraph
EMPTY
 
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.path.DigraphOfCEPaths
getBase, getPath, getPath, valid
 
Methods inherited from interface net.walend.digraph.IndexedCEDigraph
containsEdge, getEdge, getInboundEdges, getOutboundEdges, indexedEdgeIterator
 
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
 
Methods inherited from interface net.walend.collection.HasState
getPrincipleInterface, sameStateAs
 
Methods inherited from interface net.walend.digraph.CEDigraph
containsCEDigraph, containsEdge, edgeIterator, getEdge, getEdges, getInboundEdges, getOutboundEdges, intersectWithCEDigraph, sameCEDigraphAs, unionCEDigraph
 

Method Detail

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