The Tarjan's strongly connected components algorithm in ruby. For academic purposes.