What is the most efficient way to determine if a directed graph is singly connected?
Posted
by zebraman
on Stack Overflow
See other posts from Stack Overflow
or by zebraman
Published on 2010-03-24T20:50:39Z
Indexed on
2010/03/24
20:53 UTC
Read the original article
Hit count: 298
I am working on an assignment where one of the problems asks to derive an algorithm to check if a directed graph G=(V,E) is singly connected (there is at most one simple path from u to v for all distinct vertices u,v of V.
Of course you can brute force check it, which is what I'm doing right now, but I want to know if there's a more efficient way. Could anyone point me in the right direction?
© Stack Overflow or respective owner