-
Notifications
You must be signed in to change notification settings - Fork 139
TropicalGeometry: tropical linear spaces from graphs #4445
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
TropicalGeometry: tropical linear spaces from graphs #4445
Conversation
@ollieclarke8787 Would you be able to review this pull request? |
274f8c2
to
b86b6a1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4445 +/- ##
==========================================
- Coverage 84.55% 84.40% -0.16%
==========================================
Files 672 673 +1
Lines 88880 90278 +1398
==========================================
+ Hits 75152 76198 +1046
- Misses 13728 14080 +352
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code correctly produces Bergman fan of the cycle matroid the graph. The example of K_3 is also correct.
bcd1d94
to
69551de
Compare
69551de
to
9079fd8
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Co-authored-by: Benjamin Lorenz <[email protected]>
I am not sure who from the inside is able to review (and approve!) this tropical geometry PR. Perhaps someone from Berlin, e.g. @lkastner @benlorenz @micjoswig ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs on tropical linear spaces (and the rest of tropical geometry) need to state explicitly where the various objects (tropical varieties, tropical linear spaces etc) actually live. Candidates include R^n or the tropical projective torus R^n/R1 (in the homogeneous setting). Either there are choices for the user to make, or there are fixed global decisions.
Specifically, tropical linear spaces may also be viewed as tropical polytopes. And then there are more choices, for they can be considered in a tropical projective torus or in a tropical projective space. I guess, none of this is currently supported in OSCAR.
The role of Bergman fans and constant vs non-constant coefficients must be explained.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good points, I will adjust the documentation accordingly.
This is technically not necessary, as passing `nothing` to tropical_linear_space inside the function is valid, but this makes it more consistent and maybe easier to read
Added a note that tropical linear spaces in OSCAR (currently) live in euclidean space and not in the tropical torus
Constructing tropical linear spaces over the rationals go through an optimised polymake function and thus they lack certain attributes (because computing them would be extra work)
Besides enabling the constructing of tropical linear spaces from graphs, the following have changed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is OK now.
Some minor edits, e.g., improving the docs further, can be made after the merge. I find that easier than messing with the code in an external repo.
This pull requests adds a new constructor for tropical linear spaces from graphs. Useful (for me) for example for graph rigidity questions (see e.g. here).