Graph - strongly connected components
Posted
by HardCoder1986
on Stack Overflow
See other posts from Stack Overflow
or by HardCoder1986
Published on 2010-05-22T22:27:53Z
Indexed on
2010/05/22
22:30 UTC
Read the original article
Hit count: 296
Hello!
Is there any fast way to determine the size of the largest strongly connected component in a graph?
I mean, like, the obvious approach would mean determining every SCC (could be done using two DFS
calls, I suppose) and then looping through them and taking the maximum.
I'm pretty sure there has to be some better approach if I only need to have the size of that component and only the largest one, but I can't think of a good solution. Any ideas?
Thanks.
© Stack Overflow or respective owner