Skip to content

0.130.0: layout_by_links_3d, a 3D layout of a whole graph by its links - #3

Merged
tmoosting merged 1 commit into
mainfrom
by-links-3d
Nov 16, 2026
Merged

tmoosting merged 1 commit into
mainfrom
by-links-3d

Conversation

@tmoosting

Copy link
Copy Markdown
Member

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 word by-links-3d. It is the same method as the npm SDK's layoutByLinks3d, in plain Python.

  • 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; the directions table is generated from the bytes the fixture names.
  • 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.

Opened as a pull request so the full suite runs here before the release.

🤖 Generated with Claude Code

…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>
@tmoosting
tmoosting merged commit a2cfd44 into main Nov 16, 2026
4 checks passed
@tmoosting
tmoosting deleted the by-links-3d branch November 16, 2026 09:49

This branch was previously deployed

1 inactive deployment
pypi — a2cfd442 Deployed Nov 16, 2026 by tmoosting via publish #207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant