Skip to main content

Fast union-find in Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fufpy-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

fufpy-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file fufpy-0.1.1.tar.gz.

File metadata

  • Download URL: fufpy-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fufpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c05d336b3f2484170b08d83971d901d6a38d3f5e351f55ecff3061dd3bab99d3
MD5 4fd27168a16e36889c5a22a591a1ff6f
BLAKE2b-256 5f26d90fcf23c5cd5108403bf0f45c9b48df2b1574d7e44cc53fb2c132e3eb1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fufpy-0.1.1.tar.gz:

Publisher: publish.yml on LuisScoccola/fufpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fufpy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fufpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fufpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e256b5426860b30b7ad592f7377abd1e63a999cf9642e4a80761bc6aebe1ecd5
MD5 03c70dc07ec0f0b0ab223ee00c9420c7
BLAKE2b-256 88272f50a21216f50ebc84a77e286002e54bd1c515a79404d44810de4f95ac03

See more details on using hashes here.

Provenance

The following attestation bundles were made for fufpy-0.1.1-py3-none-any.whl:

Publisher: publish.yml on LuisScoccola/fufpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page