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.Object
Stores 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>
neighborCounts
private java.util.Set<V>
neighborSet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNeighbor(V v)
java.util.List<V>
getNeighborList()
java.util.Set<V>
getNeighbors()
void
removeNeighbor(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)
-
-