back

Connected Graph Components

In the process of making the "ski graph" component for this post I built a graph editor so I could easily lay out the nodes and edges. That editor is displayed separately here because it's neat, and I also implemented the algorithm for computing the connected components of a graph with some visual flair.

You can check out the completed code here.

Click to edit graph


Click to compute connected components