template<typename GR, typename K>
class lemon::IterableIntMap< GR, K >
This class provides a special graph map type which can store an integer value for graph items (Node
, Arc
or Edge
). For each non-negative value it is possible to iterate on the keys mapped to the value.
This map is intended to be used with small integer values, for which it is efficient, and supports iteration only for non-negative values. If you need large values and/or iteration for negative integers, consider to use IterableValueMap instead.
This type is a reference map, so it can be modified with the subscript operator.
- Note
- The size of the data structure depends on the largest value in the map.
- Template Parameters
-
GR | The graph type. |
K | The key type of the map (GR::Node , GR::Arc or GR::Edge ). |
- See Also
- IterableBoolMap, IterableValueMap
-
CrossRefMap
Inherits Type< GR, K >.