Skip to content

Conversation

@james-d-mitchell
Copy link
Contributor

No description provided.

This, for example, allows the family to be printed, and so the record UF
can also be printed.
The package is not loadable if the kernel extension is not compiled, so
the code removed in this PR is never used. Perhaps it is a remnant of an
older version of the package which was usable with the kernel extension
not compiled.
The previous versions of PartitionDS seem to have been written imagining
a future where there would be multiple representations of union-find
data structures. However, at present there's only one, and so it's
annoying to have to include the filter when constructing a PartitionDS.
This does not change any of the existing behaviour, but allows
PartitionDS to be called with a single argument: either the number of
points, or the parts of a partition.
There is already the IteratorOfRootsOfPartitionDS, but sometimes we just
want the roots as a list. This operation is essentially the same as
IteratorOfRootsOfPartitionDS but without the overhead of the iterator
code.
@codecov
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.27%. Comparing base (c367111) to head (ce57e10).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
gap/union-find.gi 97.14% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #159      +/-   ##
==========================================
+ Coverage   95.08%   95.27%   +0.18%     
==========================================
  Files          36       36              
  Lines        2729     2711      -18     
  Branches      110      110              
==========================================
- Hits         2595     2583      -12     
+ Misses        114      108       -6     
  Partials       20       20              
Files with missing lines Coverage Δ
gap/union-find.gd 100.00% <100.00%> (ø)
gap/union-find.gi 99.25% <97.14%> (+3.71%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@james-d-mitchell james-d-mitchell changed the title Some quality of life improvements for `PartitionDS Some quality of life improvements for PartitionDS Oct 8, 2025
Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

I'll merge and then make a release with this.

If you are interested, I'd also be happy to make you co-maintainer of this package (but I also understand if you have enough other things on your plate).

@fingolfin fingolfin merged commit 70670df into gap-packages:master Oct 14, 2025
9 checks passed
@james-d-mitchell james-d-mitchell deleted the partition-ds-qol branch October 14, 2025 21:31
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.

2 participants