Share your repls and programming experiences

← Back to all posts
Graph Animation Code Step by Step coded in python/Pygame
gjenkinsedu (3)

Code to teach how to animate a visualization of a graph algorithm:

To help data structure students in Computer Science classes understand the Breadth First Search Graph Algorithm I have done a youtube video that shows a visual animation. Many have asked how do you code this animation.

So I have a incremental set of code files that show how to animate a visualization of BFS as it steps through and discovers every node in a graph.

I have a video where I talk about what each part of this code does that you can also view at Graph Animation Code Video