minor fixes: using filtered graph instead of prunning