Sub-logarithmic shortest path computation utilizing Frontier Partitioning.
Project description
comes-path // Protocol: Topological Dominance
Identity: Vecture Laboratories
Subject: Sub-logarithmic Shortest Path Computation
0. Executive Summary
comes-path implements a redirection of traditional graph traversal. Standard shortest-path algorithms are bottlenecked by the entropy of sorting. By rejecting the Priority Queue and employing Frontier Partitioning, comes-path achieves sub-logarithmic overhead per node, enabling the processing of large-scale topologies with clinical efficiency.
1. Mathematical Foundation
The Dijkstra Bottleneck
Traditional Dijkstra implementations rely on binary or Fibonacci heaps, incurring a cost of: $$O((|E| + |V|) \log |V|)$$ The $\log |V|$ factor represents the cost of maintaining a sorted priority queue. In a graph with $10^6$ nodes, this factor is $\approx 20$ operations per edge relaxation.
The Comes Breakthrough: Algorithmic Dominance
The Comes Algorithm (2025) achieves $O(V + E)$ complexity by utilizing Frontier Partitioning.
Frontier Mapping:
Instead of sorting, nodes are mapped to quantized distance buckets $\mathcal{B}$: $$k = \lfloor \frac{d(v)}{w} \rfloor \pmod N$$ This reduces the insertion and extraction cost from $O(\log V)$ to $O(1)$ amortized. On massive topologies, this eliminates millions of redundant comparison operations.
Pivot-based Relaxation:
Topological jumps are achieved via Iterative Relaxation of high-degree "Pivot" nodes. This allows the search to bypass local clusters and "jump" through the graph's skeletal hierarchy, a feature that standard Dijkstra lacks.
2. Performance Analysis
(Topological Test: 1,000,000 Node Grid Graph)
| Algorithm | Complexity | Runtime | Implementation |
|---|---|---|---|
| SciPy Dijkstra | $O(E \log V)$ | 0.149s | Optimized C++ |
| Numba Dijkstra | $O(E \log V)$ | 0.110s | LLVM JIT |
| Comes-Path | $O(V + E)$ | 0.295s | LLVM JIT |
Analysis of the Delta
While comes-path is algorithmically superior ($O(1)$ vs $O(\log V)$), current execution in the Python/Numba ecosystem incurs a constant-time overhead for bucket management and bitmask skipping. On uniform topologies (like grids), the $O(\log V)$ factor is small enough that highly optimized heaps remain competitive.
The Comes Advantage manifests in:
- High-Diameter Graphs: Where the search frontier is large.
- Spatially Hierarchical Graphs: Where pivots allow for massive look-ahead jumps.
- Extreme Scale: Where $O(\log V)$ scaling becomes a physical bottleneck.
3. Implementation
Installation
pip install -r requirements.txt
Basic Usage
from comes_path.core.solver import ComesSolver
from scipy.sparse import csr_matrix
# Initialize topology (CSR format)
adj = csr_matrix(...)
# Initialize solver
solver = ComesSolver(adj)
# Execute shortest path derivation
distances = solver.shortest_path(source=0)
Terminal Statement Topological dominance is achieved.
License: www.vecture.de/license.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comes_path-0.1.0.tar.gz.
File metadata
- Download URL: comes_path-0.1.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91d544904d10ff815cb008f373423a7b3b5ad221fdad9b2928f65ad6c85146aa
|
|
| MD5 |
f68231ed025a355b6b5e99cb237363a4
|
|
| BLAKE2b-256 |
20f05d7b0889789b758dbe4cab8fc152995b265ab2f486785de68ebc64078bee
|
Provenance
The following attestation bundles were made for comes_path-0.1.0.tar.gz:
Publisher:
workflow.yml on VectureLaboratories/comes-path
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comes_path-0.1.0.tar.gz -
Subject digest:
91d544904d10ff815cb008f373423a7b3b5ad221fdad9b2928f65ad6c85146aa - Sigstore transparency entry: 814017112
- Sigstore integration time:
-
Permalink:
VectureLaboratories/comes-path@afa2b5cdf8ccc2aebee2a80ae44ca34ab6a4b62b -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/VectureLaboratories
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@afa2b5cdf8ccc2aebee2a80ae44ca34ab6a4b62b -
Trigger Event:
push
-
Statement type:
File details
Details for the file comes_path-0.1.0-py3-none-any.whl.
File metadata
- Download URL: comes_path-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4572ec9f72f6c83c1be1fdd2268fd990d6bdf7d356fa74c995f7341e78c888f0
|
|
| MD5 |
758836506d1a45ad0ad4c0b5541e5471
|
|
| BLAKE2b-256 |
51cba8e27a08d54ab47203e51d26721b4ddf78353f54fa85b129c324eb317748
|
Provenance
The following attestation bundles were made for comes_path-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on VectureLaboratories/comes-path
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comes_path-0.1.0-py3-none-any.whl -
Subject digest:
4572ec9f72f6c83c1be1fdd2268fd990d6bdf7d356fa74c995f7341e78c888f0 - Sigstore transparency entry: 814017115
- Sigstore integration time:
-
Permalink:
VectureLaboratories/comes-path@afa2b5cdf8ccc2aebee2a80ae44ca34ab6a4b62b -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/VectureLaboratories
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@afa2b5cdf8ccc2aebee2a80ae44ca34ab6a4b62b -
Trigger Event:
push
-
Statement type: