Python wrapper for Zoltán Szabó's HFK Calculator
Project description
Python wrapper for Zoltán Szabó’s HFK Calculator.
Installing
To install and test, do the following to install the current release from PyPI:
python3 -m pip install knot_floer_homology python3 -m knot_floer_homology.test
You should see a result such as TestResults(failed=0, attempted=24).
Usage
In Python, do:
>>> import knot_floer_homology >>> PD = [(2,0,3,15),(0,6,1,5),(6,2,7,1),(3,10,4,11),(9,4,10,5),(7,12,8,13),(13,8,14,9),(11,14,12,15)] >>> knot_floer_homology.pd_to_hfk(PD) {'L_space_knot': False, 'epsilon': 0, 'fibered': True, 'modulus': 2, 'nu': 0, 'ranks': {(-2, -2): 1, (-1, -1): 2, (0, 0): 3, (1, 1): 2, (2, 2): 1}, 'seifert_genus': 2, 'tau': 0, 'total_rank': 9}
It also accepts Spherogram knots as input:
>>> import spherogram >>> L = spherogram.Link('K10n10') >>> ans = knot_floer_homology.pd_to_hfk(L) >>> ans['seifert_genus'] 3
License
Copyright Zoltán Szabó, Marc Culler, Nathan M. Dunfield, and Matthias Goerner, 2017-present. This code is released under the GNU General Public License, version 2 or (at your option) any later version as published by the Free Software Foundation.
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
knot_floer_homology-1.0.1.tar.gz
(59.8 kB
view hashes)
Built Distributions
Close
Hashes for knot_floer_homology-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 076b88829a1af28c026d6c2fc46982ad9e1ea112b5af64a89164c81965223a7b |
|
MD5 | 7a0907bac7ded9a29d3446ef173be839 |
|
BLAKE2b-256 | 8809c0f1b9cd4ff49840a81fe4da4b199d8f4c8b595f05fd4da5ff7f38d7e188 |
Close
Hashes for knot_floer_homology-1.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d542e7bb89db336a573854a0039c9aace9d251f5789da62fffb828a7b9ecd9 |
|
MD5 | 29460d9d44b399efe29842a60f70a49c |
|
BLAKE2b-256 | 20ff3e3b8b31eedb408a7e01b3b0afe3b1dca260d5e8e27453247a1599c84587 |
Close
Hashes for knot_floer_homology-1.0.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b19b1a0de54cf0dbfc5cb025b4af484106e8b5b355dc869ead443acbbc2055e |
|
MD5 | d4edb1bddf0dfbfa94107bcb8f4ec758 |
|
BLAKE2b-256 | 0ad0d29b8eb1631b3a15a36b50b9f86b51779f0e68823b157164e0f73a0c232d |
Close
Hashes for knot_floer_homology-1.0.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccbe1c5ed3bb1328b349907c391e10c3b3e37f1289dda6597d4fd642b74a545a |
|
MD5 | 3af083808b71665489f42bf02d3fd0c7 |
|
BLAKE2b-256 | 01488a9d475833a5f0b048f5a3aded340b04bd113864aa35b5558193a2e5c62b |
Close
Hashes for knot_floer_homology-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03571e022b664abb5a12a106697e19ea6e1defafdb61914b1d106c410d38dfd7 |
|
MD5 | 20441a098d6190e3510eb910dc489a21 |
|
BLAKE2b-256 | 2e487bb0fa37bbcaf9915f3972a1eb931ebfd9726af474af3d5a8831081e5f6c |
Close
Hashes for knot_floer_homology-1.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c80f231b5625a509c3d1edd60ad83dd0996856b5a59b273936d54cb7c493e6a1 |
|
MD5 | de7022b1b3b7edf58969bfc956031379 |
|
BLAKE2b-256 | a91aecf4d481f6db4d5c6529524d26fab6cdae2a19a802506b39a452a909bddc |
Close
Hashes for knot_floer_homology-1.0.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5543a051eb55dc90dfe06cba18a9e405cbdc18ce043144e015508626192b619b |
|
MD5 | 20a9f7ac0abf6fddcecf2b350bf4ccee |
|
BLAKE2b-256 | 2332e5c3e07d295b7fc69ebe4a1d9d889a5d17ee7a119fa99a813be113174175 |
Close
Hashes for knot_floer_homology-1.0.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eb5ef9a0fb60c837d0993461eaf7418a2e360c8fb613d67b822a184b585ebd7 |
|
MD5 | b6dc7359cc9e21ccbec8eddf17364c53 |
|
BLAKE2b-256 | 027eb5247b6b8e759bd259353408eb9b9fbbfb68ab544020025288b780d0f260 |
Close
Hashes for knot_floer_homology-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ec9055423f93d432884ed07089d1575dfeab04d6072d2d1a8f4c381ceeaa4b |
|
MD5 | 8ba418c527f55de16f46f20e30dd90b4 |
|
BLAKE2b-256 | 00e289bf8f14b9170532098bd18f8329ea84e36522a149435af0c1d4e5192453 |
Close
Hashes for knot_floer_homology-1.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd3d00166b6f8e9c0fb20cbefb1dd199509680060e5cf32a5b187f131fb85c4c |
|
MD5 | a8472c5ef576da300ae34ff7a7b23280 |
|
BLAKE2b-256 | b95ddca90c6be06e93cb782e721d0452e0265d34235333076dd73e3351a396e6 |
Close
Hashes for knot_floer_homology-1.0.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b7f652f2a87bca7f7a839c0a6c23b7bc799005237a93e2801ec43c40c859e90 |
|
MD5 | 002db5aae7cba7ebb46ef2de3b8872c0 |
|
BLAKE2b-256 | e4c741f55287b2dcb8bdfc1133c4ecdeea0ed3c30bec7d770c6972b0a81a32c7 |
Close
Hashes for knot_floer_homology-1.0.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 599e69a5cb84ee7cdcb6e361187dbf250518f723ccdae66d80c30a3f96a4db20 |
|
MD5 | 1fbcf0a77f195012ad44d1a4219abddb |
|
BLAKE2b-256 | 18cb8916035948ad654aeaf52a8a802ac790694983f7c04602791a38aed0588f |
Close
Hashes for knot_floer_homology-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ae4f87de31458e4cee94899c7cbffb99de0459056185076534d07a41471ce61 |
|
MD5 | f76b3185c0edc8c48b3288609ca75dee |
|
BLAKE2b-256 | 7386ee5b1bb71aa5e54a514c9d3d055b3994f28ca3b086df38fbec31e0b61d68 |
Close
Hashes for knot_floer_homology-1.0.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87338e1e18243bb165786cd923c616d1298250a3f5a7934354f18ff37eb3bd3d |
|
MD5 | 9018446b595e6a851968b293a7600d98 |
|
BLAKE2b-256 | 485aa209b74bb13132892e27015bd5323cf0ec1072c8fd1cd08180df712a5aec |
Close
Hashes for knot_floer_homology-1.0.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2625a352cdc778abd23005ad0b132946e11d659d85a6ecb68f911c056a99dc74 |
|
MD5 | ce051071eaff8c471d6d3e3eaa8dce03 |
|
BLAKE2b-256 | f9cb7661b55859c160a38ce055a856f793ed38e8fd36c8e44eb7ad745b118113 |
Close
Hashes for knot_floer_homology-1.0.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 336caf3f0f5c304008e199781441a7768b8b93802817ce3d5ef12044d57d1056 |
|
MD5 | 326aca27871781cd672346cc26654e12 |
|
BLAKE2b-256 | fb2fcd99a47662b2692cbf4c21cbdc6189bb85ea3963b780b98e3efc44ec7eff |
Close
Hashes for knot_floer_homology-1.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7d8abbed0d4ffa5adb9b5fff7e75113fbd604d1e5e3887d093d03fd43c87c5 |
|
MD5 | 14d5975eeec66a09a47ed9c71d6abe56 |
|
BLAKE2b-256 | 434254c4692d17a14b5fed12469490c1c320d85e1c84d1d506d9ec3dfbfb1ced |