Python implementation of Tarjan's strongly connected components algorithm.
Little helper for handling entity clusters