Trees
Inheritance Tree
Visualize class inheritance hierarchies
Use the root
attribute in codebase.visualize(G, root=root_symbol) to visualize trees
1
Prompt
You can adjust the depth and add specific conditions to refine your visualization.
2
Review
The assistant will provide a codemod using NetworkX to create the inheritance tree. Here’s an example of what the code might look like:
3
Interact
Hit Run
and view the graph in the Output Tab
.
For more advanced customization options, check out our customize page.
Was this page helpful?