Another solution to drawing trees is to use our new dash-cytoscape component. See 📣 Announcing Dash Cytoscape for more details.
In particular, an example from the documentation shows how to expand a network progressively by clicking on its elements.