`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
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.1.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for unionfind-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820aee03455fcc7303e0e9bc7e2c01111ae6024b630d116368c8f21efb247279 |
|
MD5 | 2bd2d83fbab8886b68b68d7fe6631036 |
|
BLAKE2b-256 | 595e877549f40bce0cc23c54feafbce23b37031903ceff517ed669caf34811db |