Hide filtered vertices in interactive display

Hi,

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?

Thanks.

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