Repository navigation
Conversation
|
Maybe this should live in the |
|
This looks very interesting. Thanks for the contribution. It makes sense to put it in It looks like the test failure is due to some travis issue and not this code - @chebee7i it is suggesting we update from the "legacy infrastructure" http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade |
There was a problem hiding this comment.
I would rather see this as return sum((_min_cycle_basis(c, weight) for c in nx.connected_component_subgraphs(G)), []), where _min_cycle_basis is the body of the main loop below (that is, the main algorithm when the input is guaranteed to be connected). Makes it clear 1. where the main work is and 2. that this can be trivially parallelized.
There was a problem hiding this comment.
I have done as you suggested.
|
Code style is starting to look better. You should run flake8 and make the corrections it suggests. |
There was a problem hiding this comment.
remove redundant backslash
|
Oh, I just saw the comment about legacy infrastructure. Are the test failures still an issue? |
|
(Doesn't appear so) |
There was a problem hiding this comment.
Inherit from object for Python 2 compatibility purposes: class TestMinimumCycles(object):
|
Can you please add a line in the file |
|
I have implemented those changes. |
|
Can you please squash these changes into a single commit with a good commit message? |
de70bd9 to
c007add
Compare
|
Thanks for the help with squashing. I have squashed them now. |
c007add to
d90f191
Compare
|
Your pull request seems to have gained duplicate files |
d90f191 to
29d1826
Compare
|
Ahh sorry, somehow happened while I was squashing the commits. It is fixed now. |
I have added a function to compute minimum weight cycle basis for an undirected graph following de Pina's algorithm.