Skip to main content

Bounded Multi-Source Shortest Path algorithm breaking the sorting barrier

Project description

BMSSP: Bounded Multi-Source Shortest Path

PyPI version

A Python implementation of the breakthrough O(m log^(2/3) n) shortest path algorithm that breaks the 60-year-old " sorting barrier" for directed graphs.

Based on the groundbreaking research: "Breaking the Sorting Barrier for Directed Single-Source Shortest Paths"

📦 Installation

pip install bmssp

🔥 Quick Start

THIS IS NOT IMPLEMENTED YET

import bmssp
import networkx as nx

# Create a graph
G = nx.DiGraph()
G.add_weighted_edges_from([(0, 1, 4), (0, 2, 2), (1, 2, 1), (2, 3, 5)])

# Find shortest paths from source 0
distances = bmssp.single_source_shortest_path(G, source=0)
print(distances)  # {0: 0, 1: 4, 2: 2, 3: 7}

Project details


Download files

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

Source Distribution

bmssp-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

bmssp-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file bmssp-0.1.0.tar.gz.

File metadata

  • Download URL: bmssp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for bmssp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 030fc477062f07f7c5c4977bc87b283557d410eae840a64329a4c9c950b48870
MD5 175f040be5030cee0d058261b4fb0621
BLAKE2b-256 a531ee58830906baa621b4a1cc71580d0ce76b3a7fe8c6afb0170b1b65e20052

See more details on using hashes here.

File details

Details for the file bmssp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bmssp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for bmssp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a4e04291058238d2ee1b8aba6ab1e171a17b94ac0475a8b2b3e6af22c0a436d
MD5 7b5584de6493e3f680966bb30f971845
BLAKE2b-256 47d8ab830a06321fa8f57068255dbc60d91209d7a4663fd1214f69e781b0b367

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