Tarjan's Strongly Connected Components Algorithm

This program generates a random graph and when you press the solve button, it will execute Tarjan's Strongly Connected Components Algorithm. The New Problem button will generate a new graph. The randomly generated graphs are not always interesting from a strongly connected components perspective. So I have added two buttons that add and remove a random edge from the graph an allow you to run the algorithm on the different (but close to the original) graph.

your browser does not support the canvas tag