I have recently been getting an error in my code that has not been changed and have not had any issues with in the past. I am running sparse.csgraph.connected_components(adj_mat, directed=False, return_labels=True) with correct data that has worked previously. But now when I go back to re-run the same code with the same data I am getting the following error:
Has anyone else encountered this for this function or a similar issue and have any suggestions?
I have made sure that the data types are consistent and make sense and have even checked numpy and python versions that are compatible with this version of scipy to make sure that is not the case.