New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test if a matroid is ternary #18751
Comments
Branch: u/Rudi/ternary_matroid |
Author: Rudi Pendavingh |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
All done as far as I can tell. |
comment:11
Two bits of extra whitespace, both in
(this line, twice) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Argh, I really thought they were all gone. Needs review again. |
comment:14
Replying to @sagetrac-Rudi:
If you use
Happy with it. Just one question: If |
comment:15
Replying to @sagetrac-yomcat:
It's a matter of preference, I guess. Returning None is not a fail, it's giving information, and the docstring is quite explicit about that. If you are not certain if the matroid is ternary, you can test the output of ternary_matroid. This way, you can get the answer and the possible certificate in one fell swoop. If you just want to test, use is_ternary. Similarly, M.isomorphism(N) will also output None if the matroids are not isomorphic and is_isomorphic just performs the test. To me, raising errors is what you do when something abnormal occurs. It is not abnormal that a matroid is not ternary. |
comment:16
Fair enough. All good now. |
comment:17
Reviewer name. |
Reviewer: Michael Welsh |
comment:18
Thanks for reviewing! |
Changed branch from u/Rudi/ternary_matroid to |
There is a straightforward test to see if a matroid is ternary: generate the ternary representation local to a basis, and check matroid isomorphism. Implement this algorithm. See Matroid.is_binary(), ticket #18448.
CC: @sagetrac-yomcat
Component: matroid theory
Author: Rudi Pendavingh
Branch/Commit:
032b0a0
Reviewer: Michael Welsh
Issue created by migration from https://trac.sagemath.org/ticket/18751
The text was updated successfully, but these errors were encountered: