suffix_trees
Python implementation of Suffix Trees and Generalized Suffix Trees. Provided also methods with typcal aplications of STrees and GSTrees.
Installation
pip install suffix-trees
Usage
from suffix_trees import STree
# Suffix-Tree example.
st = STree.STree("abcdefghab")
print(st.find("abc")) # 0
print(st.find_all("ab")) # [0, 8]
# Generalized Suffix-Tree example.
a = ["xxxabcxxx", "adsaabc", "ytysabcrew", "qqqabcqw", "aaabc"]
st = STree.STree(a)
print(st.lcs()) # "abc"
Metadata
Release files for suffix-trees 0.2.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| suffix-trees-0.2.4.1.tar.gz | 5.8 kB | Details |
Release files / suffix-trees-0.2.4.1.tar.gz
| Download URL | suffix-trees-0.2.4.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ce585be80b4ea492795a31d4b42d6ac80b6663a404f9f96e5c2f48f8b44157d
|
|
BLAKE2b-256 checksum How to use checksums |
de7942fdcd361b3decaba9be570778982383e3ad17377830655a79bd5c10083f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |