Boost logo

Boost Users :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-07-16 23:51:21


> Hello guys,
>
> I'm a newbie with boost and I need to empty a Mutable graph in the
> program I'm doing. is ther another method as remove_edge?
>
> /Jérémie

Sure:

struct always_true
{
  typedef void result_type;
  template<typename T> bool operator()(const T&) const { return true; }
};

remove_edge_if(always_true(), your_graph);

    Doug


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