Skip to main content

Dijkstar

Dijkstar is an implementation of Dijkstra’s single-source shortest-paths algorithm. If a destination node is given, the algorithm halts when that node is reached; otherwise it continues until paths from the source node to all other nodes are found.

Accepts an optional cost (or “weight”) function that will be called on every iteration.

Also accepts an optional heuristic function that is used to push the algorithm toward a destination instead of fanning out in every direction. Using such a heuristic function converts Dijkstra to A* (and this is where the name “Dijkstar” comes from).

Performance is decent on a graph with 100,000+ nodes. Runs in around .5 seconds on average .

See the source for the required graph structure:

https://bitbucket.org/wyatt/dijkstar/src/tip/dijkstar/__init__.py?at=Dijkstar#cl-36

Metadata

Release files for Dijkstar 1.0

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

Source distribution (sdist)

Source distribution for Dijkstar 1.0
File Size Uploaded Provenance Actions
Dijkstar-1.0.tar.gz 4.5 kB Without provenance Details for Dijkstar-1.0.tar.gz

Release files / Dijkstar-1.0.tar.gz

Download URL Dijkstar-1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
18e5966c7dd4cb7aa5826ce140c406173e3e431c1ffb4683b0045029a74ab1ba
BLAKE2b-256 checksum
How to use checksums
b0a5585cb1b06683137bfb2651d792f688a92fe25c2705c6b5e0656c5e8d33de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Dijkstar 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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