Finding islands of vertices in a network of roads containing one-way streets
As Robin says, you want strongly connected components.  They can be easily found using Tarjan's algorithm, Gabow's algorithm, or several others.