ford
ford copied to clipboard
Graph Customization
(Python newbie here) -
I have modified a local copy of graphs.py that allow for customization of the graphs. I'm only just becoming marginally dangerous in Python, so it works, but I know it is not done the "correct" way.
I did attempt to isolate the modifications from the main graph.py, but again, I don't think I did this the right way.
These changes allow for graphs such as the attached. The copy of graphs.py also has recursion commented out so that only the immediate neighbors of the base node are shown. My Fortran codebase is fairly large and the fully-recursed graphs nearly blew up my browser.
I am willing to share my modified source if someone would like to pick it up and recode it the "right" way. It's nowhere near good enough to create a fork at this point.
BTW- thanks for this project; its gonna save me lots of time.
The copy of graphs.py also has recursion commented out so that only the immediate neighbors of the base node are shown
You can limit the depth of the graph with the graph_maxdepth
option. Alternatively, you could also use graph_maxnodes
, which limits the total number of nodes to draw in the graph.
Yep. graph_maxdepth is a nice enhancement. I pulled ford via pip when I started getting into this, so the version I pulled didn't have that enhancement in it.