Skip to main content

Fast Dijkstra using Boost Graph Library

Project description

Fast_dijkstra

wrapper of c++ Boost Dijkstra https://www.boost.org/doc/libs/latest/libs/graph/doc/dijkstra_shortest_paths.html

usage

edges must be integers

from fast_dijkstra import directed_dijkstra

edges = [(0, 1), (0, 2), (1, 2), (1, 3), (2, 3)]
weights = [1.0, 4.0, 2.0, 5.0, 1.0]
sources = [0, 1]
num_threads = 4

distances, predecessor = directed_dijkstra(edges, weights, sources, num_threads)
from fast_dijkstra import limited_directed_dijkstra

edges = [(0, 1), (0, 2), (1, 2), (1, 3), (2, 3)]
weights = [1.0, 4.0, 2.0, 5.0, 1.0]
sources = [0, 1]
num_threads = 4
limit=1000

distances, predecessor = limited_directed_dijkstra(edges, weights, sources, limit, num_threads)

to deploy

  1. change the version number in pyproject.toml under [project]
[project]
name = "fast_dijkstra"
version = "1.0.2"
  • the poetry config is only used for local dev. to ignore.
  1. create a new tag starting with "v"
git tag -a 'v1.0.2' -m 'description'
git push origin v1.0.2

Github action will build wheels for windows and Linux.

  1. when Done, upload to Pypi
./upload v1.0.2

local development build

sudo apt-get install -y libboost-all-dev

poetry run python setup.py bdist_wheel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fast_dijkstra-1.1.1-cp312-cp312-win_amd64.whl (79.9 kB view details)

Uploaded CPython 3.12Windows x86-64

fast_dijkstra-1.1.1-cp312-cp312-win32.whl (71.9 kB view details)

Uploaded CPython 3.12Windows x86

fast_dijkstra-1.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file fast_dijkstra-1.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for fast_dijkstra-1.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 047e80d71dfc45661cd772cc540f889408a8e87112b79257ddb1be05445b839d
MD5 214a3488867b674b46df8a9a323aac52
BLAKE2b-256 e59cf84e433f7dfc805e88ca56fb3d288b7ebc4240fdb95c30ddda79b9487064

See more details on using hashes here.

File details

Details for the file fast_dijkstra-1.1.1-cp312-cp312-win32.whl.

File metadata

  • Download URL: fast_dijkstra-1.1.1-cp312-cp312-win32.whl
  • Upload date:
  • Size: 71.9 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.6

File hashes

Hashes for fast_dijkstra-1.1.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 455342023a687b71cad1d2f978cbed4cada5684d4f244d96ef1bbd1f44e157b4
MD5 a70d446569b03dffd1431d9f5ca9b34a
BLAKE2b-256 6d849c3bfcf82d24b8285f371262575fe7af19f7908b7c11457bb2ec4f073c9e

See more details on using hashes here.

File details

Details for the file fast_dijkstra-1.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fast_dijkstra-1.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 44a72eb8260eb009f48197dfb069dcd8831c9e33e9f48b00264503cc9dfd37aa
MD5 0f0d4cffdfa81fc92ee5e30e9c3db4fc
BLAKE2b-256 09785c7f0029aa34282578b8479a308a19cc33f1b7ef00e8937941164efdb805

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page