You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I find the connected components in an undirected graph?
For directed graphs, there are retworkx.strongly_connected_components and retworkx.weakly_connected_components, but these throw an error on undirected graphs.
This is one of the most fundamental operations so I expect there must be a function that I'm just missing?
The text was updated successfully, but these errors were encountered:
No, currently such function is missing for undirected graphs but it should be a simple addition.
In general, PyDiGraph has received more attention due to its extensive use in qiskit-terra, so there might be some functionality gaps between undirected/directed graphs that we should definitely start closing.
How can I find the connected components in an undirected graph?
For directed graphs, there are
retworkx.strongly_connected_components
andretworkx.weakly_connected_components
, but these throw an error on undirected graphs.This is one of the most fundamental operations so I expect there must be a function that I'm just missing?
The text was updated successfully, but these errors were encountered: