1 #ifndef INVERT_FILTER_H_
2 #define INVERT_FILTER_H_
4 #include "graph_filter.h"
9 template<
typename GraphType>
18 inverted_filter_(inverted_filter) {
30 return !inverted_filter_(m);
37 return !inverted_filter_(e);
42 template<
typename P1,
typename P2>
Forward declarations for functors.
Definition: defines.h:32
virtual bool operator()(V_type m)
Returns true if the given node should be included, or false if it is to be filtered out...
Definition: invert_filter.h:28
std::string name() const
Definition: graph_filter.h:64
Definition: graph_filter.h:15
std::string type() const
Definition: graph_filter.h:68
virtual GraphFilter< GraphType > * clone()
Clone the filter.
Definition: invert_filter.h:22
InvertFilter(GraphFilter< GraphType > &inverted_filter)
Provide the filter to be invereted as an argument.
Definition: invert_filter.h:16
Definition: invert_filter.h:10