Skip to content

Conversation

@ZenHarbinger
Copy link

I was having problems running the simulation as is.
Turns out that the return value of nx.connected_components(...) does not have a len method. So the len() fails.
Instead, it is able to be sorted into an array that does what is desired (I believe).

If the patch is implementing the wrong logic, please let me know and I'll fix it.

We are using this in the NSCTA.

My current development platform is Ubuntu 16.10. Python 2.7

cc_conn does not have a len() method.
Iterating seems to destroy the items, so instead of iterating and counting or keeping a max, just sort by the sizes and return a count and the first entry in descending order.
cc_conn has no len() function defined.
Sort by size and report the number and largest.
Fixed importing of Generator to KroneckerGenerator
@BenjaminDHorne
Copy link
Collaborator

Thank you for pointing these out. The cc_conn issue I am fairly certain I fixed a long time ago, but must have never pushed it to github. I will check all of this out and merge ASAP.

It definitely looks like some of the the Kronecker stuff is not the latest, which is my fault. I will make sure this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants