mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 21:45:27 +08:00
* Add comprehensive doctests to disjoint_set.py - Add doctests for make_set() function with basic initialization tests - Add doctests for union_set() function with union operations and connected nodes - Add doctests for find_set() function with path compression verification - Add doctests for find_python_set() function with error handling - Add doctests for test_disjoint_set() function with comprehensive example - All doctests pass and follow project coding standards - Improves test coverage for fundamental disjoint set data structure Contributes to #9943 * from dataclasses import dataclass * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>