Skip to content

Teach incremental subtree counts with edge differences - #328

Open
ZuolinCheng wants to merge 2 commits into
tskit-dev:mainfrom
ZuolinCheng:r7-176-issue-233
Open

ZuolinCheng wants to merge 2 commits into
tskit-dev:mainfrom
ZuolinCheng:r7-176-issue-233

Conversation

@ZuolinCheng

Copy link
Copy Markdown

Replace the placeholder with a runnable edge-diff example that propagates subtree sizes through removals and insertions, explains ordering, and verifies each result against a matching tree traversal.

Refs #233

Validation

  • Verified chapter and subsection anchors, the internal efficiency link, the edge_diffs API link, and the revised prose.
  • Full offline book render passed with two existing warnings in other chapters.
  • Executed the three unchanged cells. Both intervals matched direct traversal and parent arrays. Confirmed the old/new link for node 4, node 6 count and presence, and actual edge ordering.

Validation scope

  • Notebook execution was disabled in the offline render. The exact toy example was executed separately.

AI assistance

OpenAI Codex (GPT-6.2 Sol) assisted with implementation and local tests. Gemini 4 Hydrogen High independently reviewed the initial patch, followed by local feedback handling and verification. This description was prepared with Codex assistance.

This branch has not been deployed

No deployments
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