Skip to main content

gridijkstra

Python package wrapping scipy's dijkstra with a grid-based interface

>>> import gridijkstra
>>> import numpy as np
>>> costs = np.ones((50, 60))
>>> costs[10:15, :20] = 1e30  # np.inf also works, but is less convenient for plotting
>>> costs[20:25, 25:55] = 1e30
>>> costs[30:40, 30:40] = 1e30
>>> start = (2, 2)
>>> target = (48, 58)
>>> total_cost, path = gridijkstra.plan(costs, start, target, return_path=True)
>>> print(f'Full path length: {total_cost}')
'Full path length: 102.0'

Three use cases are shown below. See scripts/examples.ipynb for a notebook with examples

Release files for gridijkstra 0.1

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

Source distribution (sdist)

Source distribution for gridijkstra 0.1
File Size Uploaded
gridijkstra-0.1.tar.gz 4.7 kB Details

Built distribution (wheel)

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

Total release size: 9.8 kB

Release files / gridijkstra-0.1.tar.gz

Download URL gridijkstra-0.1.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
800ab2f655cce3e08657b650e42f3825aef1793945c42e0ca0c9e6404bcead59
BLAKE2b-256 checksum
How to use checksums
79d1e3259d906ec2e283834e4833d1a97c86dfbf4de70344b297a7076fb64699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release files / gridijkstra-0.1-py3-none-any.whl

Download URL gridijkstra-0.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82b6dfd6473e674999ddd68e87966f6ff789c527de029a696b1a90ab8d5a0c7e
BLAKE2b-256 checksum
How to use checksums
100e3c8892e5b04cb3a4df5e4c98a86cec92961d24d600cb0163ece8fc743efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.1 This release

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