net.walend.digraph
Interface IndexedMutableGEDigraph
- All Superinterfaces:
- Digraph, GEDigraph, HasState, IndexedDigraph, IndexedGEDigraph, MutableGEDigraph
- All Known Implementing Classes:
- MutableLMGEDigraph, MutableMatrixGEDigraph
- public interface IndexedMutableGEDigraph
- extends MutableGEDigraph, IndexedGEDigraph
Indexed mutators
- Author:
- David Walend dfw1@cornell.edu
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.digraph.IndexedDigraph |
containsEdge, containsNode, countInboundEdges, countOutboundEdges, getFromIndices, getFromNodes, getNode, getNodeIndex, getToIndices, getToNodes, indexedEdgeNodeIterator, indexedNodeIterator, nodeCapacity, nodeIndices |
insureCapacity
public void insureCapacity(int capacity)
setNode
public java.lang.Object setNode(int index,
java.lang.Object node)
- Throws:
java.lang.ArrayIndexOutOfBoundsException
- if index does not have a node. Use nodeIndicies() or getNodeIndex() to avoid these. In your code, catch ArrayIndexOutOfBoundsException and throw a ConcurrentModificationException if you think that's the problem.
addEdge
public boolean addEdge(int fromIndex,
int toIndex)
- Throws:
java.lang.ArrayIndexOutOfBoundsException
- if index does not have a node. Use nodeIndicies() or getNodeIndex() to avoid these. In your code, catch ArrayIndexOutOfBoundsException and throw a ConcurrentModificationException if you think that's the problem.
removeNode
public int removeNode(int index)
- Throws:
java.lang.ArrayIndexOutOfBoundsException
- if index does not have a node. Use nodeIndicies() or getNodeIndex() to avoid these. In your code, catch ArrayIndexOutOfBoundsException and throw a ConcurrentModificationException if you think that's the problem.
removeEdge
public boolean removeEdge(int fromIndex,
int toIndex)
- Throws:
java.lang.ArrayIndexOutOfBoundsException
- if index does not have a node. Use nodeIndicies() or getNodeIndex() to avoid these. In your code, catch ArrayIndexOutOfBoundsException and throw a ConcurrentModificationException if you think that's the problem.
Copyright (c) 2001, 2002, David Walend