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<weight_map_type> r(get(edge_weight, graphMST), Wthr );
remove_edge_if(r, graphMST);
Is it possible to define instead of Wthr to define an array of properties?
What is the proper way to do it?
Thanks
Arman.