Skip to main content

FufPy: fast union-find in Python

Implementation of union-find (aka disjoint-set) data structure. Currently, for performance, the structure is defined on a set ${0, \dots, n-1}$, of size $n$, which is specified at initialization.

It implements the standard operations, as well as $subset$, which returns the subset corresponding to an element. A main use case is hierarchical clustering.

The implementation is inspired by scipy's UnionFind module, and it relies on numba for performance.

Installing

Use pip install fufpy, or pip install . from the root directory of the project.

Dependencies

This package depends on numpy and numba, which will be installed automatically when installing via pip.

Documentation

The documentation, including API, can be found here.

License

This software is published under the 3-clause BSD license.

Metadata

Release files for fufpy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fufpy 0.1.1
File Size Uploaded
fufpy-0.1.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fufpy 0.1.1
File Interpreter ABI Platform
fufpy-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / fufpy-0.1.1.tar.gz

Download URL fufpy-0.1.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c05d336b3f2484170b08d83971d901d6a38d3f5e351f55ecff3061dd3bab99d3
BLAKE2b-256 checksum
How to use checksums
5f26d90fcf23c5cd5108403bf0f45c9b48df2b1574d7e44cc53fb2c132e3eb1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2025.

Transparency log

Release files / fufpy-0.1.1-py3-none-any.whl

Download URL fufpy-0.1.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e256b5426860b30b7ad592f7377abd1e63a999cf9642e4a80761bc6aebe1ecd5
BLAKE2b-256 checksum
How to use checksums
88272f50a21216f50ebc84a77e286002e54bd1c515a79404d44810de4f95ac03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page