DivMap
Declared in lemon/maps.h, in the group Map Adaptors; the same class on the Doxygen site.
-
template< typename M1 , typename M2 >
class DivMap : public MapBase< M1::Key , M1::Value > Quotient of two maps.
This read-only map returns the quotient of the values of the two given maps. Its
KeyandValuetypes are inherited fromM1. TheKeyandValueofM2must be convertible to those ofM1.If
m1is of typeM1andm2is ofM2, then forDivMap< M1 , M2 > dm( m1 , m2 );
dm[x]will be equal tom1[x]/m2[x].The simplest way of using this map is through the divMap() function.