arXiv:2611.08119cs.RONov 2026

Manuscript Offprint

arXiv:2611.08119

H-BRICK: Hierarchical Boundary Reachability Index with Compressed Kleene Closure for Directed Grid Graphs

Tolga Özaslan, Elif A. Özaslan

Abstract

Repeated directed reachability queries arise in online path planning, task-agent allocation, and swarm control on static grid maps, where reachability is asymmetric and full transitive closure is storage-prohibitive. We introduce H-BRICK, a Hierarchical Boundary Reachability Index with Compressed Kleene closure for exact cell-to-cell queries on directed grid graphs. H-BRICK partitions the graph into tiles, computes a local Boolean Kleene closure within each tile, and projects it onto the tile's boundary ports. The resulting directed port-to-port summaries are then composed recursively across shared interfaces up to a single root covering the graph. We prove algebraically that the construction is exact: in the Boolean Kleene algebra of binary relations, every composed summary equals the boundary projection of the regional reflexive transitive closure, and every cell-to-cell query agrees with reachability in the original graph. Experiments on directed grid graphs across diverse map topologies compare H-BRICK against directed search and component-based baselines, and compare its storage requirements against full transitive closure. A batched reachability evaluation further demonstrates that sharing endpoint lifts across many-source/many-target queries amortizes hierarchical traversal and, at k=64k=64, yields a 5.0×−22.9×5.0\times-22.9\times throughput improvement over the scalar query loop. The results show that hierarchical boundary compression is most advantageous in query-intensive spatial graphs where online search traverses large reachable regions and the hierarchy maintains compact boundary interfaces.

Keywords: Kleene closure; directed reachability; transitive closure; grid graphs; Boolean matrices; hierarchical graph algorithms; reachability indexing; path planning

MSC: 05C85; 05C20; 05C50; 05C40; 68R10

1. Introduction

A reachability query asks whether a target vertex is reachable from a source vertex, and it arises in robotic navigation [1,2], path planning [3,4], map analysis [5,6], program analysis [7,8], and graph database query processing [9,10]. In grid-like environments such as occupancy maps, discretized workspaces, and structured road or terrain models, it must be answered repeatedly for many source-target pairs, including path-planning and task-assignment settings on rasterized warehouse maps [11], such as candidate allocations in multi-agent pathfinding and swarm control [12–16]. This paper studies that setting in its directed form where each traversable cell is a vertex, and a directed edge is a feasible transition between neighboring cells. Directionality may arise from one-way passages, flow fields, terrain-dependent motion constraints, traffic rules, or asymmetric motion primitives. Reachability is therefore asymmetric: a path from uu to vv need not imply a path from vv to uu. Thus connected-component labeling settles the undirected case after a linear preprocess, but it does not suffice in this directed setting.

2 of 29

Classical solutions occupy a wide spectrum. Running a graph search such as breadth-first search (BFS) for each query requires almost no preprocessing but repeatedly explores overlapping parts of a static graph, whereas materializing the all-pairs reachability relation [17–19] yields constant-time lookup at a preprocessing and storage cost that becomes prohibitive once the closure grows dense. Between these extremes, strongly connected component (SCC) contraction [20] resolves queries on the condensation, a directed acyclic graph whose vertices are the mutually reachable classes. That reduction follows directed connectivity alone: an SCC may occupy an irregular region whose boundary has no planning meaning, whereas a path-planning map is usually organized into well-defined spatial tiles, often rectangular, whose sides are the natural interfaces between rooms, corridors, or map blocks. The index developed here is geometry-driven instead, and exposes only boundary reachability to higher hierarchy levels.

We formalize reachability through Boolean matrices and Kleene algebra [21–27], which H-BRICK applies locally by computing regional closures, projecting them onto compact boundary interfaces, and storing exact relations that cross-tile queries reuse.

Reachability indexing balances preprocessing time, index size, and query latency through precomputed intermediate relations [10,28]. Representative indexes include interval labeling [29,30], 2-hop labeling [31], GRAIL [32], Path-Tree [33], and O'Reach [9]. They target arbitrary large directed graphs, and they overlap with this paper on query type and workload which can be summarized as a single preprocess, then repeated Boolean path-existence queries between arbitrary vertices. Their auxiliary structure is a vertex labeling or hop cover of a general digraph whereas this work uses the spatial boundary that a path-planning grid map already supplies in the form of tile sides, doorways, and corridor mouths. Label-constrained and regular-path indexes [34–38] lie outside the Boolean fragment used here.

Closest in spirit is border-based indexing, which cuts a graph into components and indexes connectivity through their border nodes [30,39–42]. Those constructions cover cross-partition connections via 2-hop labeling, reachability backbones, or explicit border graphs. Related boundary abstractions appear in directed grid and layered-planar reachability algorithms [43–45], which replace subgrid paths with boundary edges to decide single queries within sublinear workspace. Similarly, planar dense distance graphs [46] maintain metric shortest-path matrices over recursive rr-divisions in the tropical semiring. Unlike space-bounded decision algorithms that recompute auxiliary edges on the fly, H-BRICK targets the persistent repeated-query indexing regime. Unlike metric or cost-bounded partition indexes [47,48], H-BRICK formalizes boundary reachability over the Boolean Kleene semiring (B,⊕,⊗,0,1\mathbb{B}, \oplus, \otimes, 0, 1). It presents a complete recursive hierarchy of exact boundary relations, precomputes dedicated rectangular boundary attachments (RTVB,RTBVR_T^{VB}, R_T^{BV}, Eq. (5)) for arbitrary interior endpoints, and answers cell-to-cell queries via an ancestor scan (zU(s,t)z_U(s,t), Eq. (13)) that detects paths leaving and re-entering smaller regions without fallback graph traversal in the canonical full-depth configuration.

Four-neighbor directed grids, obstacles included, are planar digraphs, so they lie in the class already solved by compact planar reachability oracles [49,50]. Those oracles achieve near-linear preprocessing and space with constant-time queries via deep topological separator machinery; this work does not seek to improve their asymptotic worst-case bounds, but builds a cache-friendly, algebraically compositional index from local Kleene closures and grid boundaries, measuring the resulting empirical space-time tradeoff against tile granularity. Hierarchical pathfinding (e.g., HPA* [48,51]) and contraction hierarchies [4,52] similarly summarize spatial clusters by entrance distances to accelerate cost-driven search; in contrast, H-BRICK materializes exact Boolean boundary reachability for repeated path-existence testing where optimistic approximations are unacceptable.

Sparse Boolean linear algebra provides the computational substrate: GraphBLAS expresses graph algorithms over semirings [53], and high-performance bit-parallel kernels accelerate matrix multiplication and closure [54,55]. These kernels supply primitive execution engines rather than index structures; our contribution lies in determining which boundary relations are materialized and how they compose.

3 of 29

We introduce H-BRICK, a Hierarchical Boundary Reachability Index with Compressed Kleene closure, which establishes a persistent rooted hierarchy for exact cell-to-cell reachability. Each tile is closed locally and projected onto its boundary ports, and child summaries are composed recursively across shared interfaces up to a single root covering the graph, deciding arbitrary queries without materializing the complete O(N2)O(N^2) closure.

The contributions are as follows. (i) We formulate boundary-projected Boolean Kleene closure as a compositional framework and construct H-BRICK, a persistent rooted spatial hierarchy for exact cell-to-cell reachability on directed grid graphs. (ii) We prove algebraically that every composed boundary summary equals the boundary projection of the regional reflexive transitive closure, so every cell-to-cell query agrees with reachability in the original graph. (iii) We evaluate H-BRICK against directed search, SCC condensation, and labeling baselines across diverse topologies and directional flow regimes. Across 48 matched instances, its geometric-mean speedup over BFS is 190×190\times. On the largest map, bit-packed dense transitive closure requires about 240×240\times the H-BRICK index storage at the selected (b=24,g=4)(b=24, g=4) operating point, while at (b=32,g=4)(b=32, g=4) the observed per-map max-to-min mean-query-latency ratios across orientation regimes range from 1.38×1.38\times to 6.24×6.24\times. (iv) We develop and evaluate a batched many-source/many-target reachability algorithm that amortizes hierarchical traversals, achieving, at k=64k=64, a 5.0×−22.9×5.0\times-22.9\times throughput improvement over scalar query loops for multi-agent workloads.

References (55)