Skip to content

[DRAFT] Iterative versions for recursive algorithms in lib/common/ns.c#1

Draft
topologoanatom wants to merge 2 commits intodotviz:developfrom
topologoanatom:iter-algos
Draft

[DRAFT] Iterative versions for recursive algorithms in lib/common/ns.c#1
topologoanatom wants to merge 2 commits intodotviz:developfrom
topologoanatom:iter-algos

Conversation

@topologoanatom
Copy link

Changes

Implemented iterative versions for recursive algorithms in lib/common/ns.c in order to avoid stack overflow issue on WASM target.

Added functions:

  • inter_tree_edge_search_iter()
  • tree_adjust_iter()
  • rerank_iter()
  • dfs_cutval_iter

@topologoanatom topologoanatom marked this pull request as draft January 3, 2026 13:37
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