Skip to content

Transfer PackedGraph path steps to an equivalent replacement node - #251

Draft
yeeus wants to merge 1 commit into
vgteam:masterfrom
yeeus:packedgraph-transfer-path-steps
Draft

yeeus wants to merge 1 commit into
vgteam:masterfrom
yeeus:packedgraph-transfer-path-steps

Conversation

@yeeus

@yeeus yeeus commented Nov 24, 2026

Copy link
Copy Markdown

Reuse the existing path steps and their membership records when a caller has already created an equivalent replacement node. This API is specific to the in-memory PackedGraph. Callers supply two handles spelling the same oriented sequence. The method checks that the node IDs differ, the lengths match, and the destination has no steps. A circular path causes an immediate fallback without changes. Edge rewiring and removal of the source node remain with the caller.

A local test covered repeated and reverse visits, circular fallback, destruction of the original node, membership consistency, and serialization round-trip. The frozen chr21 stack included this change. No chromosome-scale peak RSS reduction is attributed to path-step transfer alone.

The integrated chr21 comparison covered 1,319 human haplotypes and passed 37/37 final-output comparisons against each of the paired control and the historical outputs in scope. See ComparativeGenomicsToolkit/cactus#2096 for test coverage and benchmark context.

@sonarqubecloud

Copy link
Copy Markdown

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