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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c05d336b3f2484170b08d83971d901d6a38d3f5e351f55ecff3061dd3bab99d3
|
|
MD5 |
4fd27168a16e36889c5a22a591a1ff6f
|
|
BLAKE2b-256 |
5f26d90fcf23c5cd5108403bf0f45c9b48df2b1574d7e44cc53fb2c132e3eb1e
|
Provenance
The following attestation bundles were made for fufpy-0.1.1.tar.gz
:
Publisher:
publish.yml
on LuisScoccola/fufpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
fufpy-0.1.1.tar.gz
-
Subject digest:
c05d336b3f2484170b08d83971d901d6a38d3f5e351f55ecff3061dd3bab99d3
- Sigstore transparency entry: 175511284
- Sigstore integration time:
-
Permalink:
LuisScoccola/fufpy@975cdaea87637d55b1ae9576f666f66837cba0af
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/LuisScoccola
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@975cdaea87637d55b1ae9576f666f66837cba0af
-
Trigger Event:
workflow_dispatch
-
Statement type:
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e256b5426860b30b7ad592f7377abd1e63a999cf9642e4a80761bc6aebe1ecd5
|
|
MD5 |
03c70dc07ec0f0b0ab223ee00c9420c7
|
|
BLAKE2b-256 |
88272f50a21216f50ebc84a77e286002e54bd1c515a79404d44810de4f95ac03
|
Provenance
The following attestation bundles were made for fufpy-0.1.1-py3-none-any.whl
:
Publisher:
publish.yml
on LuisScoccola/fufpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
fufpy-0.1.1-py3-none-any.whl
-
Subject digest:
e256b5426860b30b7ad592f7377abd1e63a999cf9642e4a80761bc6aebe1ecd5
- Sigstore transparency entry: 175511288
- Sigstore integration time:
-
Permalink:
LuisScoccola/fufpy@975cdaea87637d55b1ae9576f666f66837cba0af
-
Branch / Tag:
refs/heads/main
- Owner: https://github.com/LuisScoccola
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@975cdaea87637d55b1ae9576f666f66837cba0af
-
Trigger Event:
workflow_dispatch
-
Statement type: