Skip to main content

Graphs Library: Dijkstra's Shortest Path

This Python library provides an implementation of Dijkstra's shortest path algorithm and other graph-related utilities. The goal of this project is to practice packaging a Python library into a standardized format so it can be easily installed and used.

Repository Structure:

src/
├── graphs_asaqib1/
│   ├── __init__.py
│   ├── heapq.py
│   └── sp.py
├── test.py
├── README.md
└── pyproject.toml

*graphs_asaqib1/sp.py: Contains the implementation of Dijkstra’s shortest path algorithm
*graphs_asaqib1/heapq.py: Helper function for priority queue operations
*test.py: Script to test the library
*pyproject.toml: Packaging configuration
*README.md: This file which contains basic information about this library

Installation:

You can install the package using pip:

pip install asaqib1==0.0.9

Features:

*Finds the shortest paths from a source vertex to all other vertices in a weighted graph
*Supports extension with other graph algorithms
*Uses a min-heap to efficiently select the next vertex with the smallest known distance

Example:

For a graph with 9 vertices, the shortest path from vertex 0 to vertex 1 may have a cost of 4, and to vertex 8 may have a cost of 14.

Author Information

*Author: Alizah Saqib
*GitHub: https://github.com/asaqib1

Release files for asaqib1 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asaqib1 0.0.9
File Size Uploaded
asaqib1-0.0.9.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asaqib1 0.0.9
File Interpreter ABI Platform
asaqib1-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / asaqib1-0.0.9.tar.gz

Download URL asaqib1-0.0.9.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cd6cbc467259ec4672161a772f25eff28315149691803de665dc5c5f98e2bb4a
BLAKE2b-256 checksum
How to use checksums
2a2a9e0e3b74a79cf8a5b6e41bea5b52f84d5363a976bf793342ea6d9ac8f1e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / asaqib1-0.0.9-py3-none-any.whl

Download URL asaqib1-0.0.9-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
714e12f4452bc78b01b3f4d8c4ba4a0450d05118c33f8be36ce7d672a3775c05
BLAKE2b-256 checksum
How to use checksums
b2472759458c5945046135ae7a9a253f57ad518c6a1781f4014c498366277887
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page