1 #ifndef GRAPH_FILTER_H_
2 #define GRAPH_FILTER_H_
14 template<
typename GraphType>
36 std::string filter_type =
"",
64 std::string
name()
const {
return name_; }
68 std::string
type()
const {
return type_; }
77 virtual bool enabled()
const {
return enabled_; }
80 virtual bool nodes()
const {
return nodes_; }
83 virtual bool edges()
const {
return edges_; }
100 template<
typename P1,
typename P2>
virtual bool operator()(V_type m)=0
Returns true if the given node should be included, or false if it is to be filtered out...
Forward declarations for functors.
Definition: defines.h:32
virtual GraphFilter< GraphType > * clone()=0
virtual bool enabled() const
Definition: graph_filter.h:77
std::string name() const
Definition: graph_filter.h:64
Definition: graph_filter.h:15
virtual bool nodes() const
The nodes property tells us whether this filter operates on nodes.
Definition: graph_filter.h:80
std::string type() const
Definition: graph_filter.h:68
void set_inverted(bool status)
Sets the inverted status.
Definition: graph_filter.h:53
bool inverted() const
Definition: graph_filter.h:73
GraphFilter(std::string filter_name="", std::string filter_type="", bool inverted=false, bool enabled=true, bool nodes=true, bool edges=true)
Definition: graph_filter.h:35
void set_enabled(bool enabled)
Sets enabled.
Definition: graph_filter.h:58
virtual bool edges() const
The edgesproperty tells us whether this filter operates on nodes.
Definition: graph_filter.h:83