Boost logo

Boost Users :

Subject: [Boost-users] BGL: cutting subgraph using more than one condition.
From: Arman Khalatyan (arm2arm_at_[hidden])
Date: 2009-10-26 10:49:49


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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net