Repository navigation
ShowGraph: RenderEdges and RenderVertices get their own options again - #6
Merged
Merged
Conversation
Options[RenderEdges] held vertex options and Options[RenderVertices] edge options (with a comma missing), so RenderEdges found no EdgeDirection and every ShowGraph printed Part::partw and Part::partd. They are now the last 7 and the first 8 options of ShowGraph, as the original Take[Options[ShowGraph], ...] gives in WMA. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
Thanks! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while running the examples of Skiena and Pemmaraju's Computational Discrete Mathematics with this package under Mathics3, comparing every result with WMA 15.
Options[RenderEdges]andOptions[RenderVertices]are now the literal slices ofOptions[ShowGraph]that WMA'sTakegives:EdgeColor,EdgeStyle,EdgeLabel,EdgeLabelColor,EdgeLabelPosition,LoopPosition,EdgeDirectionVertexColor,VertexStyle,VertexNumber,VertexNumberColor,VertexNumberPosition,VertexLabel,VertexLabelColor,VertexLabelPositionTaken from
Options[ShowGraph], which Mathics3 listed sorted by name, they picked up the wrong options, and everyShowGraphgavePart::partw/Part::partdmessages. That was about 250 of the book's examples. Mathics3/mathics-core#2082 keeps the order ofOptionsas set, which fixes the root cause; this PR makes the package independent of it.Package tests: 18 passed.
🤖 Generated with Claude Code