python-graphs
Install
pip install hexlet-graphs
Usage example
from hexlet.fs import (
build_tree_from_leaf
make_joints,
sortTree
)
tree = ['B', [
['D'],
['A', [
['C', [
['F'],
['E'],
]],
]],
]]
joints = make_joints(tree)
transformed = build_tree_from_leaf(joints)
# ['C', [
# ['F'],
# ['E'],
# ['A', [
# ['B', [
# ['D'],
# ]],
# ]],
# ]]
sort_tree(transformed)
# ['C', [
# ['A', [
# ['B', [
# ['D'],
# ]],
# ]],
# ['E'],
# ['F'],
# ]]
For more information, see the Full Documentation
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet (in Russian).
See most active contributers on hexlet-friends.
Release files for hexlet-graphs 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hexlet-graphs-0.1.3.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hexlet_graphs-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / hexlet-graphs-0.1.3.tar.gz
| Download URL | hexlet-graphs-0.1.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdc5b86aaa4a901537faedf6268671cb52ac3ecb6e16f3535f672aa258d4b499
|
|
BLAKE2b-256 checksum How to use checksums |
7e6cf62fc74c4dd3b66ab1fe9589b96e150187089e3f108c1802f5c4556a42f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.1 Linux/5.11.0-46-generic
|
Release files / hexlet_graphs-0.1.3-py3-none-any.whl
| Download URL | hexlet_graphs-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20e06bb1058f69f792cdd7832a3e07401fc6c7753d75b61a0d5c87e7cfab95ec
|
|
BLAKE2b-256 checksum How to use checksums |
046a0afe8541ab3a786915b6c80bcfe279901f970e3b65f701b9830198bb9825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.1 Linux/5.11.0-46-generic
|