
26 Oct
2009
26 Oct
'09
2:49 p.m.
Hello,
I would like to cut my MST graph using several conditions on Edge.
template<typename WMap>
class Remover
{
public:
Remover(const WMap& weights, MyFloat threshold)
: m_weights(weights), m_threshold(threshold) {}
template<typename ED>
bool operator()(ED w) const { return m_weights[w] < m_threshold; }// here I
would like to have set of conditions based on vertexes of the edge
private:
const WMap& m_weights;
MyFloat m_threshold;
};
Remover