Update graph.py - Fix #410

changed filtered to self.filtered