Class DirectedAcyclicGraph.VisitedArrayListImpl

java.lang.Object
org.jgrapht.graph.DirectedAcyclicGraph.VisitedArrayListImpl
All Implemented Interfaces:
Serializable, DirectedAcyclicGraph.VisitedStrategy, DirectedAcyclicGraph.VisitedStrategyFactory
Enclosing class:
DirectedAcyclicGraph<V,E>

protected static class DirectedAcyclicGraph.VisitedArrayListImpl extends Object implements DirectedAcyclicGraph.VisitedStrategy, DirectedAcyclicGraph.VisitedStrategyFactory
A visited strategy using an ArrayList.

This implementation seems to offer the best performance in most cases. It grows the internal ArrayList as needed to be as large as |AR|, so it will be more memory intensive than the HashSet implementation, and unlike the Array implementation, it will hold on to that memory (it expands, but never contracts).

Author:
Peter Giles
See Also: