template<typename GR, typename K, typename V>
class lemon::IterableValueMap< GR, K, V >
This class provides a special graph map type which can store a comparable value for graph items (Node
, Arc
or Edge
). For each value it is possible to iterate on the keys mapped to the value (ItemIt
), and the values of the map can be accessed with an STL compatible forward iterator (ValueIt
). The map stores a linked list for each value, which contains the items mapped to the value, and the used values are stored in balanced binary tree (std::map
).
IterableBoolMap and IterableIntMap are similar classes specialized for bool
and int
values, respectively.
This type is not reference map, so it cannot be modified with the subscript operator.
- Template Parameters
-
GR | The graph type. |
K | The key type of the map (GR::Node , GR::Arc or GR::Edge ). |
V | The value type of the map. It can be any comparable value type. |
- See Also
- IterableBoolMap, IterableIntMap
-
CrossRefMap
Inherits Type< GR, K >.