Update graphFilter.py

smarter