Algorithm course solution to Depth First Search to computer strongly connected components in graph