Deprecated Tarjan in favor of csgraph connected components