Repository navigation
0.130.0: layout_by_links_3d, a 3D layout of a whole graph by its links - #3
Merged
Merged
Conversation
…s (by-links-3d) The same method as the npm SDK's layoutByLinks3d, in plain Python: groups round the graph's most linked elements, packed apart in directions read from a baked table and settled by 300 seeded force steps, the world's Map that holds the most of the graph by a Pin a flat plate. Maps and Pins are read through map_space and layout_of only; a Pin's z is not read and a layout map is never the plate. held and held_unit hand back points an earlier answer gave, so a picture keeps still as the world changes. The method's shared fixture, the same bytes as the npm SDK's copy, is the test, and the directions table is generated from the bytes the fixture names (its --check in CI). The word by-links-3d is the tool's own until the method's page is published; until then a release may move its points. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch was previously deployed
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.
Adds
layout_by_links_3d(graph, elements=None, *, held=None, held_unit=None): a 3D layout of a whole graph by its links, under the method wordby-links-3d. It is the same method as the npm SDK'slayoutByLinks3d, in plain Python.map_spaceandlayout_ofonly; a Pin's z is not read and a layout map is never the plate.heldandheld_unithand back points an earlier answer gave, so a picture keeps still as the world changes.by-links-3dis the tool's own until the method's page is published; until then a release may move its points.Opened as a pull request so the full suite runs here before the release.
🤖 Generated with Claude Code