Skip to main content

python-graphs

github action status

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

Hexlet Ltd. logo

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)

Source distribution for hexlet-graphs 0.1.3
File Size Uploaded
hexlet-graphs-0.1.3.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hexlet-graphs 0.1.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page