Commit de3bae43 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

correct (invert) edge/vertex filtering semantics


git-svn-id: https://svn.forked.de/graph-tool/trunk@6 d4600afd-f417-0410-95de-beed9576f240
parent c28d25de
......@@ -382,7 +382,7 @@ def parse_option(opt, just_file=False):
variables[k] = v
filter_vars["populate_vars"] = populate_vars
try:
exec "def filter_function(props):\n populate_vars(props,variables); return %s\n" % opt.value in filter_vars
exec "def filter_function(props):\n populate_vars(props,variables); return not %s\n" % opt.value in filter_vars
except:
raise OptionError(opt.name, "invalid value '%s': %s" % (opt.value,sys.exc_info()[0]))
if opt.name == "vertex-filter":
......
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