Skip to content

feat(graphs): add Union-Find (Disjoint Set Union)#6

Merged
kelsonbrito50 merged 1 commit intomainfrom
feat/union-find
Feb 28, 2026
Merged

feat(graphs): add Union-Find (Disjoint Set Union)#6
kelsonbrito50 merged 1 commit intomainfrom
feat/union-find

Conversation

@kelsonbrito50
Copy link
Owner

Adds Union-Find data structure with path compression and union by rank, plus cycle detection utility. 9 tests.

- UnionFind class with path compression and union by rank
- has_cycle utility for undirected graphs
- Full test coverage (9 tests)
@kelsonbrito50 kelsonbrito50 merged commit cca8f5a into main Feb 28, 2026
2 checks passed
@kelsonbrito50 kelsonbrito50 deleted the feat/union-find branch February 28, 2026 14:00
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