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.3.tar.gz (6.2 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.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: graphamazur-0.0.3.tar.gz
  • Upload date:
  • Size: 6.2 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.3.tar.gz
Algorithm Hash digest
SHA256 de680653dd025e49bf201497a6ff1945ac699cff2cccdde5d616c689eb49f30f
MD5 5bf4753b97b9a5da4122f75a27fb5e4c
BLAKE2b-256 8986bf3e9092bf9886f6625006c35fb1c660c215557fc8c4d3e50dd51fbf72b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: graphamazur-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd761d05a6cc534fbc7dd7dbbd25ed7c990dec3ae04e16ad49fb648e0ed1cd0
MD5 11c05739c1561f1a23d10a7525482e29
BLAKE2b-256 32bb76d4aae93d157516cbfab5fab9dbd552d92a0e86c8bf0849ddaa0ae6d8de

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