Repository navigation
Conversation
Also exposes documentation for new functions.
| @@ -0,0 +1,58 @@ | |||
| #!/usr/bin/env python | |||
There was a problem hiding this comment.
Should kirchoffs_circuit_laws.py go with the examples?
There was a problem hiding this comment.
oops -- I see that this file is in the examples directory already...
Should we remove the if __name__ == "__main__":?
There was a problem hiding this comment.
Sure, I'll update this file.
|
There seems to be problems with the unit tests, some are not actually being run. I need to do a bit more reorganizing on this pull request. |
|
Due to duplicate test method names, the unit tests for the proposed Maybe it would be easier to deal with if I split this quite large pull request into several commits, each of which depends on the one above it:
What do you think? |
|
I think the tests are failing because "an arbitrary orientation of the edges is selected". Perhaps the test could check the absolute value of the matrix? So, I don't think you need to rearrange the commits unless it helps you with debugging. Is there a way to know (or maybe even determine) the order of the edges and cycles in the matrix? |
|
Why doesn't the Wouldn't this work: |
|
Dear Developers, Regards, |
|
I think the change to add the optional argument to the spanning trees (commit 1d4e7dd) could be integrated right away. This is a useful enhancement independent of the cycle basis topic |
|
This should be replaced by #4822 |
Unfortunately, I had some problem with git not uploading my new commits for the pull request #1538; I couldn't figure out how to fix it so I opened this new pull request instead. Sorry about that.
Anyway, the new commit I made capitalizes on the changes introduced in pull request #1740 (the
Graph.edge_subgraph()method) and in pull request #1741 (allowing keys to be returned by theminimum_spanning_edges()function). In fact, I extended the latter pull request in commit 1d4e7dd, the first commit in the current pull request, since I needed access to the edge key for the edges from which the minimum spanning tree of a multigraph was derived. Thechords()function is now as simple as I had originally hoped.