The inverse map type of IdMap. The subscript operator gives back an item by its id. This type conforms to the ReadMap concept.
#include <lemon/maps.h>
Public Member Functions | |
InverseMap (const Graph &graph) | |
Constructor. More... | |
InverseMap (const IdMap &map) | |
Constructor. More... | |
Item | operator[] (int id) const |
Gives back an item by its id. More... | |
|
inlineexplicit |
Constructor for creating an id-to-item map.
|
inlineexplicit |
Constructor for creating an id-to-item map.
|
inline |
Gives back an item by its id.