Skip to content

Comments

Ensure unique nodes in query and query_by_id#31

Merged
jonatanklosko merged 1 commit intomainfrom
jk-dedup
Feb 9, 2026
Merged

Ensure unique nodes in query and query_by_id#31
jonatanklosko merged 1 commit intomainfrom
jk-dedup

Conversation

@jonatanklosko
Copy link
Member

Closes #26.

For child_nodes I didn't add the uniqueness check, because I don't think there's currently a scenario where we would return duplicated nodes. Given that other functions don't return duplicated nodes, we can assume the input is unique set of nodes, and getting children of those should always result in a unique set (since a node cannot have two different parents).

@jonatanklosko jonatanklosko merged commit 6b32061 into main Feb 9, 2026
6 checks passed
@jonatanklosko jonatanklosko deleted the jk-dedup branch February 9, 2026 18:38
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.

Always track unique nodes

2 participants