-
Notifications
You must be signed in to change notification settings - Fork 183
Connectedness of directed graphs #1088
Comments
There was a lot of discussion around this after #368. Paging @jpfairbanks. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Can we revive this? |
Sure. But I think this does what you want:
So having |
In the digraph
there is no path from u to w or from w to u, but the graph is still weakly connected. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Currently
is_connected(g)
is equivalent tois_weakly_connected(g)
ifg
is a digraph. The English Wikipedia on the other hand says, that for a digraph,g
is connected if for every pair of vertices(u, v)
there is either a path fromu
tov
or one fromv
tou
.To make stuff more complicated, I can't find that definition anywhere else in the literature. But apparanently this concept is called semi-connected in a lot of places (for example also in Networkx).
I would therefore propose to add a deprecation warning to
is_connected
for digraphs and also to implement a functionis_semi_connected
for digraphs.Related issue: #368
The text was updated successfully, but these errors were encountered: