InverseMap
. #include <lemon/graph_utils.h>
Classes | |
class | InverseMap |
The class represents the inverse of its owner (IdMap). More... | |
Public Member Functions | |
IdMap (const Graph &_graph) | |
Constructor. | |
int | operator[] (const Item &item) const |
Gives back the id of the item. | |
Item | operator() (int id) |
InverseMap | inverse () const |
Gives back the inverse of the map. |
IdMap | ( | const Graph & | _graph | ) | [inline, explicit] |
Constructor of the map.
int operator[] | ( | const Item & | item | ) | const [inline] |
Gives back the immutable and unique id of the item.
Item operator() | ( | int | id | ) | [inline] |
Gives back the item by its id.
InverseMap inverse | ( | ) | const [inline] |
Gives back the inverse of the IdMap.