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")