33 #ifndef UG_GRAPH_INTERFACE_BOOST_UTIL_H
34 #define UG_GRAPH_INTERFACE_BOOST_UTIL_H
37 #include <boost/iterator/filter_iterator.hpp>
46 explicit noloop(
const G& g) :
_g(g) {}
56 template<
class T,
class G>
57 std::pair<boost::filter_iterator<noloop<G>, T>,
58 boost::filter_iterator<noloop<G>, T>>
omit_loops(std::pair<T, T>
const& p, G
const& g)
61 typedef boost::filter_iterator<noloop<G>, T> f;
62 return std::make_pair(f(P,
p.first,
p.second), f(P,
p.second,
p.second));
G const & _g
Definition: boost_util.h:52
size_t target(SM_edge< typename T::value_type > const &e, ug::BidirectionalMatrix< T > const &m)
Definition: bidirectional_boost.h:100
size_t source(SM_edge< typename T::value_type > const &e, ug::BidirectionalMatrix< T > const &)
Definition: bidirectional_boost.h:94
std::pair< boost::filter_iterator< noloop< G >, T >, boost::filter_iterator< noloop< G >, T > > omit_loops(std::pair< T, T > const &p, G const &g)
Definition: boost_util.h:58
value_type & operator()(size_t r, size_t c)