Button listeners - a simple way to do it

I wanted to make a snippet, that does the following:

It shows a BFS tree of length 1 and when you click on a node it shows the
BFS of the clicked node. Is there a simple way to do it by using the
graph_draw method?

I put a demo for something similar here:

  https://graph-tool.skewed.de/static/doc/dev/demos/animation.html#interactive-visualizations

Best,
Tiago

Thank you very much for your reply!
I cannot find the demo though!

What do you mean? It is in the link I gave you:

    https://graph-tool.skewed.de/static/doc/dev/demos/animation.html#interactive-visualizations

Best,
Tiago