graph_analysis
EdgeContextFilter.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_FILTERS_EDGE_CONTEXT_FILTER_HPP
2 #define GRAPH_ANALYSIS_FILTERS_EDGE_CONTEXT_FILTER_HPP
3 
4 #include "../Filter.hpp"
5 
6 namespace graph_analysis {
7 namespace filters {
12 class EdgeContextFilter : public Filter<graph_analysis::Edge::Ptr>
13 {
14 public:
15  typedef shared_ptr<EdgeContextFilter> Ptr;
16 
21  virtual std::string getName() const { return "graph_analysis::EdgeContextFilter"; }
22 
27  virtual std::string toString() const { return getName(); }
28 
33  virtual bool evaluateTarget(graph_analysis::Edge::Ptr e) const { return false; }
34 
41 
46  virtual bool evaluateSource(graph_analysis::Edge::Ptr e) const { return false; }
47 
53 };
54 
55 } // end namespace filters
56 } // end namespace graph_analysis
57 #endif // GRAPH_ANALYSIS_FILTERS_EDGE_CONTEXT_FILTER_HPP
virtual std::string toString() const
Get string representation of filter.
Definition: EdgeContextFilter.hpp:27
Filter for a graph.
Definition: Filter.hpp:55
virtual std::string getName() const
Get Name of the filter.
Definition: EdgeContextFilter.hpp:21
bool matchesSource(graph_analysis::Edge::Ptr e) const
Use this and associated subfilters, to check if this edge&#39;s source vertex is matched by the filter...
Definition: EdgeContextFilter.cpp:25
virtual bool evaluateTarget(graph_analysis::Edge::Ptr e) const
Evaluated the target of the edge.
Definition: EdgeContextFilter.hpp:33
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
virtual bool evaluateSource(graph_analysis::Edge::Ptr e) const
Evaluated the source vertex of the edge.
Definition: EdgeContextFilter.hpp:46
Definition: EdgeContextFilter.hpp:12
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
bool matchesTarget(graph_analysis::Edge::Ptr e) const
Use this and associated subfilters, to check if this target vertex is matched by the filter...
Definition: EdgeContextFilter.cpp:6
shared_ptr< EdgeContextFilter > Ptr
Definition: EdgeContextFilter.hpp:15