pamelafox / recursive-visualizations

An online tool to visualize recursive JS functions step-by-step as a tree.
https://www.recursionvisualizer.com/
GNU General Public License v2.0
45 stars 10 forks source link
graph hacktoberfest pyodide python recursion visualization

recursive-visualizations

A way to visualize the call graph of recursive functions.

Uses Pyodide to run rcviz.py and then a WASM PyDot/GraphViz port to build an SVG graph. Finally, some JavaScript adds a slider for stepping through the calls.

To run locally:

python3 -m http.server

To run Python tests:

pytest