forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-38536: Implement dual subdivision and weight vectors for t…
…ropical variety <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> This PR introduces some new methods in `TropicalVariety` related to dual subdivision and weight vectors. ### Summary of changes: 1. Add `dual_subdivision` in `TropicalVariety`: return the dual subdivision for any tropical variety as a Graph object 2. Add `_components_of_vertices` in `TropicalCurve`: intermediate method the help calculate weight vectors 3. Add `weight_vectors` in `TropicalCurve`: return the weight vectors of each vertex 4. Add `weight_vectors` in `TropicalSurface`: return the weight vectors of each unique line of intersection 5. Add a few methods related to dual subdivision of tropical curve such as: - `is_smooth` - `is_simple` - `genus` - `contribution` CC: @tscrim ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [x] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies sagemath#37962: issues related to this PR sagemath#38291: continuation of this PR URL: sagemath#38536 Reported by: Verrel Rievaldo Wijaya Reviewer(s): Travis Scrimshaw, Verrel Rievaldo Wijaya
- Loading branch information
Showing
4 changed files
with
843 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.