Библиотека для работы с графами
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.3.tar.gz
(6.2 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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de680653dd025e49bf201497a6ff1945ac699cff2cccdde5d616c689eb49f30f
|
|
| MD5 |
5bf4753b97b9a5da4122f75a27fb5e4c
|
|
| BLAKE2b-256 |
8986bf3e9092bf9886f6625006c35fb1c660c215557fc8c4d3e50dd51fbf72b9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd761d05a6cc534fbc7dd7dbbd25ed7c990dec3ae04e16ad49fb648e0ed1cd0
|
|
| MD5 |
11c05739c1561f1a23d10a7525482e29
|
|
| BLAKE2b-256 |
32bb76d4aae93d157516cbfab5fab9dbd552d92a0e86c8bf0849ddaa0ae6d8de
|