v4.22.0
parruda/swarmv4.22.0Sep 30, 2026by swilly22
Upgrading?
AI Summary
v4.22.0 introduces advanced path-finding algorithms, a Contraction Hierarchies (CCH) path index, and resolves critical crashes related to MERGE and UPDATE operations.
Key Highlights
- Advanced path-finding algorithms including A* search with haversine heuristic and Yen's k-shortest paths.
- Introduction of Contraction Hierarchies (CCH) path index with DDL support and incremental maintenance.
- Bug fixes addressing crashes during MERGE clauses and SIGSEGV errors on UPDATE operations.
- RDB encoding updated to v20 and improvements to replication persistence.
New Features
- A* search with admissible haversine heuristic and optional heuristicScale.
- Yen's k-shortest paths with goal-directed spur search.
- CCH path index with DDL (CREATE/DROP) commands and query interface.
- Incremental maintenance for CCH indices.
- RDB encoding v20 support.
- Export functions for Graph_EncodingVersion and Graph_GetDecoder.
Full Release Notes
✨ New features Advanced path-finding algorithms (#2630, #2720, #2656, #2732) - A* search with an admissible haversine heuristic + optional heuristicScale so it stays optimal for non-distance weights like travel time (heuristicScale = 1/max_speed; 0 = Dijkstra). Fixes ~1.6× suboptimal routes on time-weighted road networks. - Yen's k-shortest paths with goal-directed spur search. - All-shortest-paths and k-shortest-paths procedures. - Optimality/cost-model fixes: correct pathCost/hop-count accounting, cost-aware k-shortest selection, redundant destination-lookup skip in landmark mode. CCH path index (#2680, #2721, #2865) - DDL: CREATE CCH INDEX FOR ()-[e:A|B]->() ON (e.w) / DROP CCH INDEX …. Multi-reltype supported; hierarchy stays internal (no shortcut edges / rank props in your graph). - Query: db.idx.cch.query — rank-pruned bidirectional Dijkstra. - Incremental maintenance: commit-coalesced dirty tracking (CLEAN < RECUSTOMIZE < REBUILD); weight/edge changes recustomize scoped, topology changes rebuild. - Persistence: full RDB serialization, restored on load. 🐛 Bug fixes - Crash on MERGE preceded by an erroring clause (#3116). - Crash when a clause errors mid plan-build (#3139). - Replica SIGSEGV applying an UPDATE_EDGE/UPDATE_NODE effect naming a freed id (id divergence) (#2581). 🔄 Replication & persistence - Remove full-sync requirement from the decoder; maintain transpose in Delta_set (#2584). - Export Graph_EncodingVersion / Graph_GetDecoder (#2552). - RDB encoding v19 → v20 (adds CCH serialization).
Related Repositories
maybe-finance/maybe★ 54,214
The personal finance app for everyone
huginn/huginn★ 50,090
Create agents that monitor and act on your behalf. Your agents are standing by!
discourse/discourse★ 48,002
A platform for community discussion. Free, open, simple.
chatwoot/chatwoot★ 38,081
Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬