Groups
Sign in
Groups
networkx-discuss
Conversations
About
Send feedback
Help
Algorithm of finding connected components in NetworkX
68 views
Skip to first unread message
roxana saghafian
unread,
Feb 16, 2024, 7:40:36 AM
Feb 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to networkx-discuss
Hi all,
I was wondering what is the algorithm based on which the connected components are found using " nx.connected_components(G)". Is it Depth First Search?
Thanks
seth....@gmail.com
unread,
Feb 16, 2024, 7:49:16 AM
Feb 16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to networkx-discuss
Hi,
It uses BFS underneath
https://github.com/networkx/networkx/blob/main/networkx/algorithms/components/connected.py#L66
:)
Reply all
Reply to author
Forward
0 new messages