No project description provided
Project description
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.
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
hexlet-graphs-0.1.3.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for hexlet_graphs-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e06bb1058f69f792cdd7832a3e07401fc6c7753d75b61a0d5c87e7cfab95ec |
|
MD5 | 0a662df3c6a75536fc9e90cf42c2d628 |
|
BLAKE2b-256 | 046a0afe8541ab3a786915b6c80bcfe279901f970e3b65f701b9830198bb9825 |