Skip to main content

Библиотека для работы с графами

Project description

Лабораторная работа 4: Алгоритмы на графах

Описание

Модуль 1 - базовая работа с графами

  1. Создание графа - create_graph()
  2. Добавление вершины - add_vertex(graph, name)
  3. Добавление ребра - add_edge(graph, v1, v2, weight=1)
  4. Подсчёт вершин - count_vertex(graph)
  5. Подсчёт рёбер - count_edges(graph)
  6. Получение вершин - get_vertices(graph)
  7. Получение рёбер - get_edges(graph)
  8. Матрица смежности - smejnost_matrix(graph)
  9. Печать матрицы смежности - print_smejnost_matrix(graph)
  10. Печать рёбер - print_edges(graph)

Модуль 2 - алгоритмы

  1. Алгоритм Прима - prim_algorithm()
  2. Алгоритм Краскала - kruskal_algorithm(graph)
  3. Алгоритм Дейкстры - dijkstra_algorithm(graph, start_vertex)
  4. Вывод результата Прима - show_prim_result(edges)
  5. Вывод результата Краскала - show_kruskal_result(edges)
  6. Вывод результата Дейкстры - show_dijkstra_result(distances, previous, start)

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

graphamazur-0.0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphamazur-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file graphamazur-0.0.1.tar.gz.

File metadata

  • Download URL: graphamazur-0.0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for graphamazur-0.0.1.tar.gz
Algorithm Hash digest
SHA256 661ceb299ca07f1f622c9fed2ac069b48b7eae99a59c7e424b7fba5d788ba9b2
MD5 45806feb11217c0ffaa9ca91b91d341e
BLAKE2b-256 be0f6cfff93509c9f341a16872d962b2c0387d08c469230e5293d09a69196210

See more details on using hashes here.

File details

Details for the file graphamazur-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: graphamazur-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for graphamazur-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 420675de71a75724ce5a52eabd586bcf2ca26fe69f8c14ddd3fb098992ad18ed
MD5 8cf72ce5e6a50d64f2dc58f216d445ac
BLAKE2b-256 a6a42c5c9eeb679d78c302398d418a7d17b19a42c6cfe69574051b2bdf23ecdb

See more details on using hashes here.

Supported by

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