Commit 08806f70 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

* complete modification of how python filtering works. Now it's much more general.


git-svn-id: https://svn.forked.de/graph-tool/trunk@72 d4600afd-f417-0410-95de-beed9576f240
parent 51632e6c
......@@ -35,7 +35,10 @@
#include "graph_adaptor.hh"
#include "graph_selectors.hh"
#ifndef NO_PYTHON_FILTERING
#include "graph_python_filtering.hh"
#endif
namespace graph_tool
{
......@@ -204,6 +207,7 @@ struct check_directed
bool& _found;
};
#ifndef NO_PYTHON_FILTERING
template <class Graph, class Action, class ReverseCheck, class DirectedCheck>
void check_python_filter(const Graph& g, const GraphInterface &gi, Action a, bool& found, ReverseCheck, DirectedCheck)
{
......@@ -238,6 +242,7 @@ void check_python_filter(const Graph& g, const GraphInterface &gi, Action a, boo
mpl::for_each<DirectedCheck>(check_directed<Graph,Action,ReverseCheck>(g, a, gi._reversed, gi._directed, found));
}
}
#endif
template <class Action, class ReverseCheck, class DirectedCheck>
void check_filter(const GraphInterface &g, Action a, ReverseCheck, DirectedCheck)
......
......@@ -21,6 +21,7 @@
#include "graph.hh"
#include "histogram.hh"
#include "graph_filtering.hh"
#include "graph_python_filtering.hh"
#include "graph_selectors.hh"
#include "graph_properties.hh"
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment