Skip to main content

No project description provided

Project description

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.

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 details)

Uploaded Source

Built Distribution

hexlet_graphs-0.1.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file hexlet-graphs-0.1.3.tar.gz.

File metadata

  • Download URL: hexlet-graphs-0.1.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.1 Linux/5.11.0-46-generic

File hashes

Hashes for hexlet-graphs-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bdc5b86aaa4a901537faedf6268671cb52ac3ecb6e16f3535f672aa258d4b499
MD5 2e6cc0628691d9da3fc79b7328a3607f
BLAKE2b-256 7e6cf62fc74c4dd3b66ab1fe9589b96e150187089e3f108c1802f5c4556a42f7

See more details on using hashes here.

File details

Details for the file hexlet_graphs-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: hexlet_graphs-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.1 Linux/5.11.0-46-generic

File hashes

Hashes for hexlet_graphs-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 20e06bb1058f69f792cdd7832a3e07401fc6c7753d75b61a0d5c87e7cfab95ec
MD5 0a662df3c6a75536fc9e90cf42c2d628
BLAKE2b-256 046a0afe8541ab3a786915b6c80bcfe279901f970e3b65f701b9830198bb9825

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page