This map adaptor class adapts two arc maps of the underlying digraph to get an arc map of the undirected graph. Its value type is inherited from the first arc map type (FW
).
FW | The type of the "foward" arc map. |
BK | The type of the "backward" arc map. |
#include <lemon/adaptors.h>
Public Types | |
typedef Parent::Arc | Key |
The key type of the map. | |
typedef FW::Value | Value |
The value type of the map. | |
Public Member Functions | |
CombinedArcMap (FW &forward, BK &backward) | |
Constructor. | |
void | set (const Key &e, const Value &a) |
Sets the value associated with the given key. | |
ConstReturnValue | operator[] (const Key &e) const |
Returns the value associated with the given key. | |
ReturnValue | operator[] (const Key &e) |
Returns a reference to the value associated with the given key. | |