Package org.jgrapht.alg
Class NeighborIndex.Neighbors<V>
- java.lang.Object
-
- org.jgrapht.alg.NeighborIndex.Neighbors<V>
-
- Enclosing class:
- NeighborIndex<V,E>
static class NeighborIndex.Neighbors<V> extends java.lang.ObjectStores cached neighbors for a single vertex. Includes support for live neighbor sets and duplicate neighbors.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<V,ModifiableInteger>neighborCountsprivate java.util.Set<V>neighborSet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNeighbor(V v)java.util.List<V>getNeighborList()java.util.Set<V>getNeighbors()voidremoveNeighbor(V v)
-
-
-
Field Detail
-
neighborCounts
private java.util.Map<V,ModifiableInteger> neighborCounts
-
neighborSet
private java.util.Set<V> neighborSet
-
-
Constructor Detail
-
Neighbors
public Neighbors(java.util.Collection<V> neighbors)
-
-