added graph filtering when node is clicked for Issue #6