`unionfind` is a package for unionfind.
Project description
unionfind is a package for unionfind.
from unionfind import unionfind u = unionfind(3) # There are 3 items. u.unite(0, 2) # Set 0 and 2 to same group. u.issame(1, 2) # Ask "Are 1 and 2 same?" u.groups() # Return groups.
See also https://pypi.org/project/ortoolpy/
Requirements
Python 3
Features
nothing
Setup
$ pip install unionfind
History
0.0.1 (2015-4-3)
first release
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
unionfind-0.2.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for unionfind-0.2.1-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 2a1614e9617f5a35b19491d2bb531cfd868996e54c9683e3435b97f513cc39e6 |
|
| MD5 | 45943b5192dcfa5afc5237cdc1095420 |
|
| BLAKE2b-256 | 5c52d47debb619311ff016bb3615d051c907d3f547a7bc39884781a6dafc53fb |