Graph Editor

Python, visualized

Draw a graph. Write Python. Watch it run.

An interactive graph editor where real Python drives the canvas — write a traversal, press run, and see every step animate in front of you.

dfs.pyPython
visited = set()

def dfs(node):
    if node in visited:
        return
    visited.add(node)
    for neighbour in graph.getNeighbors(node):
        dfs(neighbour)   # the canvas animates as the graph is read

dfs("A")
Real Python, in your browser
CPython compiled to WebAssembly (Pyodide) with networkx preloaded. No server round-trips — your code runs in a Web Worker next to the canvas.
Watch algorithms think
Plain textbook code animates the canvas by itself — every graph read becomes a frame, with the executing line highlighted in sync. Play, pause, step and scrub through every decision.
Your graphs, saved and private
Sign in with GitHub or Google. Graphs are stored in Postgres behind row-level security — private by default, shareable when you say so.