Hide filtered vertices in interactive display


I want to interactively display a filtered graph whose filter is updated based on mouse events (eg when the user presses a vertex, it then display/remove its neighbors)
The problem i have is that when hovering over the window with the mouse, I am still able to select or highlight a filter vertex.
Is there an easy way to fully hide the filtered vertices?


Without a minimal working example that shows the problem you are
describig, there is not much that we can help with...