arXiv:2611.01879cs.DBNov 2026

Manuscript Offprint

arXiv:2611.01879

Graphs Have Structure: Declarative Manifolds, 3D Z-Order Monoid Roll-ups, and Zero-Simulation Visual Analytics in a Graph DBMS

Madhulatha Mandarapu, Sandeep Kunkunuru

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Madhulatha Mandarapu

Samyama.ai

madhulatha@samyama.ai

Sandeep Kunkunuru

Samyama.ai

sandeep@samyama.ai

Abstract—Every real-world graph is embedded in an ambient structural manifold: proteins fold in Euclidean space (R3\mathbb{R}^3), telecom networks sit on a planetary surface (S2×R\mathbb{S}^2 \times \mathbb{R}), and ontologies and calendars form discrete sub-sumption posets (((V,Ξ)((V, \Xi)). Yet property graph databases treat node coordinates as opaque payload scalars, leave spatial proximity edges unindexed, and force visualizers into O(V2)O(V^2) client-side force-directed simulations that destroy true geometry and truncate hierarchy roll-ups.

We elevate ambient manifold structure to a first-class primitive in Samyama Graph. First, we introduce a declarative and auto-detected structural convention contract (samyama.structure/1) persisted in .sgsnap headers that binds node labels to Euclidean 3D, Geo-Spherical, Causal Spacetime, or Poset Hierarchy manifolds. Second, we show that both discrete posets (via Order-Embedded Hierarchy [tin,tout] DFS intervals) and continuous 3D manifolds (via a 63-bit 3D Morton Z-order Structural-Geometric Index, SGI) reduce regional aggregation to 1D rank-interval monoid folds answered directly from index-resident Fenwick trees (SUM, COUNT) and Segment Trees (MIN, MAX). At 100,000 3D nodes, SGI builds in 28.14 ms and answers Morton-interval SUM and MAX roll-ups in 0.048 μ\mus and 0.104 μ\mus—8,345.1 ×\times and 3,824.4 ×\times faster than property scans. Third, we introduce 3D voxel-hashed virtual contact edges weighted by Topological-Geometric Stress σ(u,v)=dgraph(u,v)/dmanifold(u,v)\sigma(u,v) = d_{\text{graph}}(u,v)/d_{\text{manifold}}(u,v) to isolate long-range tertiary folds, plus manifold-guided A∗A^* shortest-path search that cuts explored states by up to 3.80 ×\times over Dijkstra. Fourth, we replace client layout simulation with server-computed 3D Cone-Tree/Ribbon coordinates and a non-WebGL 2.5D Isometric projection with painter's-order depth sorting and sub-millisecond Level-of-Detail (LoD) macro-cuts.

Index Terms—graph databases, spatial indexing, Morton Z-order curve, hierarchy indexing, monoid roll-up, protein structure graphs, visual analytics

I. INTRODUCTION

Property graph databases model data as a combinatorial pair G=(V,E)G = (V, E) adorned with key-value property maps. In this abstraction, a graph has adjacency but no intrinsic geometry: the coordinates (x,y,z)(x, y, z) of an amino acid residue in a Protein Data Bank (PDB) structure [1], the (lat, lon, alt) of a cellular base station, and the taxonomic depth of a concept in the NCBI Taxonomy [2] or

GeoNames [3] are stored as uninterpreted floating-point or integer payload properties.

Treating ambient structure as opaque payload creates four systemic failures across the query engine and its visual analytics stack:

  1. Regional roll-ups degenerate into linear scans. Asking for the sum, minimum, or maximum of a measure (such as crystallographic B-factor, cell traffic volume, or descendant taxon count) over a 3D spatial region or taxonomic subtree forces the query engine to scan candidate nodes and dereference property storage, rather than answering the aggregate from an index.

  2. Implicit spatial adjacency is either unindexed or quadratic. In structural biology and wireless infrastructure, the most consequential interactions are non-bonded contacts—pairs of nodes (u,v)(u, v) that are far apart along the covalent or routing backbone (dG(u,v)≫1)(d_G(u, v) \gg 1) but lie within a physical cutoff radius ϵ\epsilon in ambient space (dM(u,v)≤ϵ)(d_{\mathcal{M}}(u, v) \leq \epsilon). Materializing all pairs within ϵ\epsilon across multiple cutoffs bloats edge storage, while computing them on the fly without a 3D index costs O(V2)O(V^2).

  3. Graph algorithms run blind to the manifold. Pathfinding (shortestPath) and community detection execute uninformed combinatorial searches (BFS or Dijkstra) that expand wavefronts radially in hop space, ignoring admissible geometric lower bounds available from the node coordinates.

  4. Visualizers fabricate O(V2)O(V^2) hairballs and truncate hierarchy roll-ups. When a browser client such as Samyama Insight fetches a subgraph of 250 to 2,000 nodes, it runs an iterative force-directed layout [4] that destroys true 3D molecular or geospatial geometry. Worse, when rendering a hierarchy from a client-loaded subgraph, client-side aggregation can only sum over the loaded subset, misreporting the size and roll-up of every collapsed ancestor near the root.

a) The thesis.: Every real-world graph is embedded in an ambient structural manifold M\mathcal{M}—discrete or continuous—and declaring that manifold to the database unifies indexing, regional roll-up, structure-guided algorithms, and zero-simulation visual analytics under a single abstraction.

Building on our prior work on Order-Embedded Hierarchy indexing (OEH) for subsumption posets [5], we observe a fundamental algebraic duality between discrete hierarchies and continuous 3D space. In a tree or near-tree poset, a depth-first numbering maps every subtree to a contiguous 1D rank interval [tin(u),tout(u)][\text{tin}(u), \text{tout}(u)]. In continuous 3D space, quantizing (x,y,z)(x, y, z) into a 63-bit 3D Morton Z-order code [6] maps octree cells and Morton ranges into contiguous 1D rank intervals [rank(mlo),rank(mhi)][\text{rank}(m_{\text{lo}}), \text{rank}(m_{\text{hi}})]. Consequently, both discrete posets and continuous 3D manifolds can be aggregated by the exact same index-resident monoid engines: a Fenwick tree [7] for invertible group operations (SUM, COUNT) and a Segment Tree for idempotent semilattice operations (MIN, MAX).

b) Contributions.: We design, implement, and evaluate this architecture inside the Rust-based Samyama Graph engine [8]:

• C1 — Declarative & Auto-Detected Structural Conventions (§II): We introduce the samyama.structure/1 specification persisted in .sgsnap snapshot headers, together with a schema-free property-signature detector that binds node labels to four manifold classes: Euclidean3d, GeoSpherical, HierarchyPoset, and CausalSpacetime.

• C2 — Unified 1D Rank-Interval Monoid Indexing via OEH and SGI (§III): We pair OEH (extended with a 4-way structural probe including NearTree exception lists and Segment Tree MIN/MAX roll-ups) with the Structural-Geometric Index (SGI), a 63-bit 3D Morton Z-order index with index-resident Fenwick and Segment Tree roll-ups.

• C3 — Structure-Guided Graph Operators (§IV): We implement 3D voxel-hashed virtual contact extraction, Topological-Geometric Stress σ(u,v)=dG(u,v)/dM(u,v)\sigma(u,v) = d_G(u,v)/d_{\mathcal{M}}(u,v) to isolate long-range tertiary folds and routing detours, and manifold-guided A∗A^* shortest-path search [9].

• C4 — Zero-Simulation 3D & Non-WebGL 2.5D Isometric Visual Cues (§V): We expose engine-level HTTP endpoints (/api/hierarchies and /api/structure/cues) that return authoritative whole-graph roll-ups, 3D Cone-Tree [10] and polymer ribbon coordinates, and a deterministic non-WebGL 2.5D Isometric projection with painter's-algorithm depth sorting and sub-millisecond Level-of-Detail (LoD) macro-cuts.