- java.lang.Object
-
- org.jgrapht.alg.util.NeighborCache.Neighbors<V>
-
- Enclosing class:
- NeighborCache<V,E>
static class NeighborCache.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)
java.lang.String
toString()
-
-
-
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)
-
-
Method Detail
-
addNeighbor
public void addNeighbor(V v)
-
removeNeighbor
public void removeNeighbor(V v)
-
getNeighbors
public java.util.Set<V> getNeighbors()
-
getNeighborList
public java.util.List<V> getNeighborList()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-