Библиотека для работы с графами
Project description
Лабораторная работа 4: Алгоритмы на графах
Описание
Модуль 1 - базовая работа с графами
- Создание графа - create_graph()
- Добавление вершины - add_vertex(graph, name)
- Добавление ребра - add_edge(graph, v1, v2, weight=1)
- Подсчёт вершин - count_vertex(graph)
- Подсчёт рёбер - count_edges(graph)
- Получение вершин - get_vertices(graph)
- Получение рёбер - get_edges(graph)
- Матрица смежности - smejnost_matrix(graph)
- Печать матрицы смежности - print_smejnost_matrix(graph)
- Печать рёбер - print_edges(graph)
Модуль 2 - алгоритмы
- Алгоритм Прима - prim_algorithm()
- Алгоритм Краскала - kruskal_algorithm(graph)
- Алгоритм Дейкстры - dijkstra_algorithm(graph, start_vertex)
- Вывод результата Прима - show_prim_result(edges)
- Вывод результата Краскала - show_kruskal_result(edges)
- Вывод результата Дейкстры - show_dijkstra_result(distances, previous, start)
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphamazur-0.0.2.tar.gz.
File metadata
- Download URL: graphamazur-0.0.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e728665b7f4a4965cd008423e53120ced1e36fbbd2e2276e1449400f2fbdd68
|
|
| MD5 |
bb02e19781d2298d209601d2654adcaa
|
|
| BLAKE2b-256 |
e8b5ab8192172239e4e25ba56dcb952a50e7eef8a3fc835c8adf7a617b6d4f1c
|
File details
Details for the file graphamazur-0.0.2-py3-none-any.whl.
File metadata
- Download URL: graphamazur-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
265828447b12b1a8747aa32fa17b42396dd5fccebe98660d5f93c058628fb396
|
|
| MD5 |
06bd09e72f672064a8d390885f76bb63
|
|
| BLAKE2b-256 |
2c9fd7dbea462be9999d4a0cde44117902f63974791f77c53034a06f9e5393a1
|