I have a graph that has many subgraphs. I have some edges that connect two nodes in both directions, that is, A-->B and B-->A. The bidirectionality is important, as it repre
You are looking for SCC of the graph, that are strongy connected component s. They can be found with a variant of DFS (depth first search).
You should take a look at the wiki article.