diff --git a/include/boost/graph/filtered_graph.hpp b/include/boost/graph/filtered_graph.hpp index 43461410..59ecb8b5 100644 --- a/include/boost/graph/filtered_graph.hpp +++ b/include/boost/graph/filtered_graph.hpp @@ -503,6 +503,8 @@ namespace boost { return Filter(g, keep_all(), p); } + // This is misspelled, but present for backwards compatibility; new code + // should use the version below that has the correct spelling. template struct vertex_subset_compliment_filter { typedef filtered_graph > type; @@ -515,6 +517,18 @@ namespace boost { return Filter(g, keep_all(), p); } + template + struct vertex_subset_complement_filter { + typedef filtered_graph > type; + }; + template + inline typename vertex_subset_complement_filter::type + make_vertex_subset_complement_filter(Graph& g, const Set& s) { + typedef typename vertex_subset_complement_filter::type Filter; + is_not_in_subset p(s); + return Filter(g, keep_all(), p); + } + // Filter that uses a property map whose value_type is a boolean template struct property_map_filter {