# Impulse Graph Engine > Impulse Graph Engine (`impulse-graph` / `org.impulsegraph`) is a read-only, memory-mapped C-ABI binary snapshot graph engine (`.imps`) and 64-register bytecode virtual machine (`ImpulseVM` executing `impOps`) for Java 21/25 (Pure FFM, zero JNI), Python/PyTorch, C/C++20, Rust, Go, .NET, and Node.js. Key architectural invariants for code generation and system design: - **Immutable `.imps` Snapshots (No OLTP Mutations)**: Snapshots are read-only memory-mapped files (`mmap`); never emit `CREATE`/`MERGE`/`INSERT`/`SET`/`DELETE` mutations. Rebuild `.imps` artifacts via `impulse-graph build` or Java `SnapshotBuilder` and rotate atomically via `SnapshotLifecycleManager` / `SnapshotSwapManager`. - **Per-Domain Dense ID Independence (`0 .. N_d - 1`)**: There is no global node ID space (`User#0 != Account#0`). Always anchor queries to an explicit domain (`snap.domain("User")` or generated typed views) and persist external business keys (`fromKey` / `toKeyList`), never ephemeral dense IDs. - **Engine-Native Kleisli Set Traversals**: Never write client-side imperative `for` loops performing point lookups hop-by-hop. Express multi-hop CSR/CSC walks, CEL filters, monoid reductions (`SUM`/`MIN`/`MAX`), and `repeatUntilStable` loops in a single engine pipeline or prepared `openCypher` / `ImpLog` / `ImpK` query. ## AI Coding Agent & Machine-Readable Resources - [AI Coding Agent Skill & Rules (SKILL.md)](https://www.impulsegraph.org/ai/SKILL.md): Self-contained raw Markdown skill/rules pack for Claude Code, Antigravity, Cursor, and GitHub Copilot. - [Full Documentation & Specification Corpus (llms-full.txt)](https://www.impulsegraph.org/llms-full.txt): Single-file concatenation of all Impulse Graph guides, SDK references, and normative `.imps` / `ImpulseVM` specifications. ## Home - [Impulse Graph Engine](https://www.impulsegraph.org/): Impulse Graph Engine (`impulse-graph`) is an embedded, read-only graph engine built around an open, 128-byte-aligned binary snapshot format (`.imps`) and a 64-register bytecode virtual machine (`ImpulseVM`). It... - [Impulse Graph Engine Benchmarks & Performance](https://www.impulsegraph.org/benchmarks/): Once both Impulse Graph engines map the same `.imps` CSR/CSC and SoA segments off-heap and scan them with SIMD (`jdk.incubator.vector` vs. Highway / OpenMP), throughput is bounded primarily by DRAM bandwidth and... - [Project Status, Announcements & Roadmap](https://www.impulsegraph.org/status/): This page tracks the current development status, subsystem readiness, announcements, and the path to the `v1.0` release across the Impulse Graph Engine ecosystem. For version-by-version changelogs, see Release Notes. - [Release Notes](https://www.impulsegraph.org/release-notes/): Chronological technical changelog across the Impulse Graph Engine repositories (`impulse-graph-spec`, `impulse-graph-core`, `impulse-graph-java`, `impulse-ocaml`, and `impulse-verification`). - [Showcase Applications — Overview (Showcase Applications: One Engine, Every Domain)](https://www.impulsegraph.org/showcase/): The showcase applications in the Impulse Graph ecosystem exist for two reasons: - [Showcase Applications — Authorization (ReBAC) (Showcase: ReBAC Authorization (Zanzibar))](https://www.impulsegraph.org/showcase/authz/): The `impulse-authz` showcase models enterprise hierarchical permissions (users, groups, roles, datasets) and demonstrates how Impulse Graph powers sub-microsecond, fine-grained Relationship-Based Access Control... - [Showcase Applications — Anti-Money Laundering (Showcase: Anti-Money Laundering (AML) & Fraud Rings)](https://www.impulsegraph.org/showcase/aml/): The Anti-Money Laundering (AML) showcase demonstrates how Impulse Graph detects deep circular transaction loops ("layering" fraud rings) and enables interactive "what-if" link analysis that traditional relational... - [Showcase Applications — Power Grid Stability (Showcase: Power Grid Real-Time $N-1$ & $N-2$ Contingency Simulator)](https://www.impulsegraph.org/showcase/powergrid/): The `impulse-powergrid` showcase illustrates how a 100x–300x leap in graph traversal speed doesn't just optimize an existing workflow—it makes an entirely new operational capability practical in real time. - [Showcase Applications — Graph Neural Networks (Showcase: PyTorch & Graph Neural Networks (`impulse-gnn`))](https://www.impulsegraph.org/showcase/gnn/): Using `.imps` as a storage format for PyTorch removes the decompression, ID-hashing, and multi-worker copy-on-write overhead of loading graphs from Parquet—and exposes native C-ABI neighborhood sampling directly... ## Start Here - [Getting Started](https://www.impulsegraph.org/getting-started/): Impulse Graph executes read-only graph queries directly over memory-mapped `.imps` snapshot files across pluggable execution runtimes—including the Pure JVM Engine (Java 21 LTS / 25, Kotlin, Scala 3, Clojure) and the... - [Problem-First Guides — From NetworkX, Pandas & Parquet (From NetworkX & Apache Parquet to `.imps` Snapshots)](https://www.impulsegraph.org/getting-started/from-networkx-and-parquet/): Python graph workflows typically start cleanly in DuckDB, Polars, or Pandas over Apache Parquet files—and then hit a wall the moment edges are loaded into memory for multi-hop traversal or GNN sampling: - [Problem-First Guides — Embedded Engine vs. Graph DBs (Embedded `.imps` Runtime vs. Networked Graph Databases)](https://www.impulsegraph.org/getting-started/embedded-vs-graph-db/): Backend and JVM platform teams building fine-grained authorization (ReBAC / Zanzibar), payment fraud rings, bill-of-materials (BOM) dependency trees, or catalog hierarchies commonly reach for a networked graph... - [Problem-First Guides — Build Once, Mount Anywhere (Polyglot "Parquet for Graphs" Workflow)](https://www.impulsegraph.org/getting-started/polyglot-workflow/): In many organizations, graph data crosses three distinct engineering stacks: - [Installation](https://www.impulsegraph.org/getting-started/installation/): Impulse Graph Engine provides pluggable, zero-dependency execution runtimes over the portable `.imps` binary snapshot format and `impOps` bytecode ISA: - [Quickstart](https://www.impulsegraph.org/getting-started/quickstart/): This guide walks you through building an immutable `.imps` binary snapshot and querying it across Pure Java 25, C / C++20 (C-ABI), and Python. - [Core Onboarding — Core Concepts & Glossary (Core Concepts & Architecture Primer)](https://www.impulsegraph.org/getting-started/core-concepts/): Getting started with the Impulse Graph Engine does not require a background in sparse linear algebra or compiler design. Understanding four structural choices—CSR/CSC adjacency arrays, per-domain dense IDs,... - [Changing Data & Live Updates](https://www.impulsegraph.org/getting-started/handling-mutations/): Impulse Graph executes over immutable, read-only `.imps` snapshots. Whether that fits your system depends on your freshness requirement: ## Concepts & Architecture - [Why Impulse Graph? The Story & Architecture](https://www.impulsegraph.org/concepts/why-impulse/): Relational databases and mutable graph databases rely on B-trees, heap-linked `Node` objects, or row-oriented `(source, target)` edge tables (COO) to support in-place writes. Every hop pays for pointer chasing, lock... - [Data-Oriented Design: Hardware-Native Graph Execution](https://www.impulsegraph.org/concepts/data-oriented-design/): For architectural motivation and design inspirations, see Why Impulse Graph?. This page covers the memory layout and CPU execution mechanics behind Impulse Graph. - [Binary Snapshots, Domains & Schema (`.imps`)](https://www.impulsegraph.org/concepts/snapshots/): An Impulse Binary Snapshot (`.imps`) is a single, read-only file whose on-disk byte layout matches the in-memory data structures. Sections are padded to 128-byte boundaries so applications can `mmap` the file and... - [Zero-Allocation Execution & Caller Buffers](https://www.impulsegraph.org/concepts/key-mapping-and-projections/): A defining guarantee of Impulse Graph Engine is zero dynamic memory allocations (`malloc` / `new`) in the hot query path. - [Compiler Pipeline & ImpulseVM Execution](https://www.impulsegraph.org/concepts/compiler-architecture/): Every query in Impulse Graph Engine—whether written in the Fluent API, openCypher, Google CEL, ImpLog (Datalog), or ImpK (GraphBLAS)—compiles through a single multi-pass pipeline into 64-bit `impOps` bytecode and... - [Theoretical & Research Foundations — Mathematical & Categorical Algebra (Mathematical, Categorical & GraphBLAS Foundations)](https://www.impulsegraph.org/academic/): This page formalizes the mathematical foundation of the Impulse Graph Engine query and execution model—connecting Semiring-Weighted Kleisli Algebras, Grothendieck Fibrations, GraphBLAS Sparse Linear Algebra, and... - [Theoretical & Research Foundations — Research Literature & Design Lineage (Research Literature, Annotated Bibliography & Design Lineage)](https://www.impulsegraph.org/academic/literature-and-influences/): Impulse Graph Engine synthesizes four decades of peer-reviewed research across sparse linear algebra, shared-memory HPC graph algorithms, virtual machine architecture, columnar database storage, disk-aligned vector... - [Software Modules & Repository Map](https://www.impulsegraph.org/software-modules/): Impulse Graph decouples its normative binary format and bytecode specification (`impulse-graph-spec`) from independent execution runtimes that evaluate the same `.imps` snapshot files and 64-register `impOps` ISA: ## Querying & DSLs - [Querying & DSLs Overview](https://www.impulsegraph.org/query-api/): Once an `.imps` snapshot is memory-mapped into your process, all query interfaces in Impulse Graph compile through the same ImpScheme $\to$ `impOps` bytecode pipeline and execute on `ImpulseVM` with zero hot-loop... - [Fluent Traversal API](https://www.impulsegraph.org/query-api/fluent-api/): The Fluent Traversal API provides a strongly-typed, allocation-free pipeline for stepping across domains, filtering node and edge attributes with Google CEL, performing off-heap bitset algebra, and materializing results. - [State Projections, Reducers & Loops](https://www.impulsegraph.org/query-api/advanced-querying/): While pure reachability queries pass a boolean BitSet from domain to domain, analytical queries often need to repeat walks until convergence or carry and aggregate computed state (costs, distances, capacities, or... - [openCypher Dialect Guide](https://www.impulsegraph.org/dsl/opencypher/): Impulse Graph includes an embedded, zero-dependency openCypher compiler frontend that lowers read-only `MATCH ... WHERE ... RETURN` queries into `ImpScheme` S-Expressions and executes them as 64-bit `impOps` bytecode... - [Google CEL (Filters, Projections & SIMD Math)](https://www.impulsegraph.org/dsl/cel/): Impulse Graph Engine embeds a zero-dependency Google Common Expression Language (CEL) compiler across all query frontends (Fluent API, openCypher, ImpLog, and ImpK), powering both boolean predicate filtering (`WHERE`... - [ImpLog Specification (`.implog`)](https://www.impulsegraph.org/dsl/implog/): ImpLog (`.implog`) is the declarative Datalog & Logic DSL for Impulse Graph Engine, designed for fine-grained Relationship-Based Access Control (ReBAC / Zanzibar), transitive reachability, security policy... - [ImpK Specification (`.impk`)](https://www.impulsegraph.org/dsl/impk/): ImpK treats graph relations as sparse adjacency matrices, node frontiers as dense vectors or bitsets, and traversals as algebraic matrix-vector multiplications. The syntax consists of declarative statement... - [ImpScheme Specification (`.impscm`)](https://www.impulsegraph.org/dsl/impscm/): ImpScheme uses parenthesized Lisp/Scheme forms. All expressions are evaluated prefix style. ## Ecosystems & Tooling - [Ecosystems, Runtimes & Developer Hubs](https://www.impulsegraph.org/ecosystems/): Impulse Graph Engine separates graph storage, schema contracts, and execution semantics from any single host programming language. Rather than wrapping one monolithic server or forcing every ecosystem through a... - [Java & JVM Enterprise — Overview, BOM & JVM Flags (Java & JVM Enterprise Hub)](https://www.impulsegraph.org/ecosystems/java/): `impulse-graph-java` (`org.impulsegraph`) is a 100% pure Java implementation of the Impulse Graph Engine, `ImpulseVM`, multi-frontend query compiler, and streaming snapshot builder targeting Java 21 LTS and Java 22+... - [Java & JVM Enterprise — Building Snapshots (Java & JDBC) (Building Snapshots in Java)](https://www.impulsegraph.org/ecosystems/java/building-snapshots/): This guide covers building immutable `.imps` binary snapshots in pure Java using `org.impulsegraph:impulse-builder`. Depending on where your source data lives, Java provides two zero-dependency build paths: - [Java & JVM Enterprise — Schema-First & AOT Codegen (Schema-First Development & AOT Code Generation)](https://www.impulsegraph.org/ecosystems/java/aot-codegen/): In stringly-typed graph APIs, three classes of bugs routinely escape into production: - [Java & JVM Enterprise — Maven Plugin & Build Pipeline (Maven Plugin & Build-Time AOT Pipeline)](https://www.impulsegraph.org/ecosystems/java/maven-and-build-tooling/): `impulse-maven-plugin` (goal prefix `impulse`) integrates schema-first Java code generation, snapshot-agnostic build-time query verification, deterministic `.imps` test fixture building, and multi-consumer... - [Java & JVM Enterprise — Pure-Java CLI (impulse-j) (Pure-Java CLI (`impulse-j`) & Tooling Parity)](https://www.impulsegraph.org/ecosystems/java/cli-impulse-j/): Impulse Graph provides two command-line distributions that operate on the exact same `.imps`, `.imps.schema.yaml`, `.impas`, and `.impb` files: - [Java & JVM Enterprise — Day-2 K8s, Hot-Swap & Schema Evolution (Day-2 Operations: Kubernetes, Hot-Swap Lifecycle & Schema Evolution)](https://www.impulsegraph.org/ecosystems/java/kubernetes-and-lifecycle/): Because Impulse Graph executes read-only traversals directly over immutable `.imps` files, production microservices never apply row-by-row mutations in place. Instead, an upstream job periodically writes a fresh... - [Java & JVM Enterprise — Kotlin, Scala 3 & Clojure (Kotlin, Scala 3, Clojure & Java API Reference)](https://www.impulsegraph.org/ecosystems/java/jvm-languages/): Because `impulse-api` exposes clean Java interfaces without checked exceptions on traversal pipelines and `impulse-codegen` emits standard Java 21+ classes and `record` types, Kotlin, Scala 3, and Clojure... - [Python, Data Science & ML — Overview & Interactive Workflows (Python, Data Science & ML Hub)](https://www.impulsegraph.org/ecosystems/python/): The `impulse-graph` Python SDK embeds the C++20 `ImpulseVM` kernel via `pybind11` and maps immutable `.imps` binary snapshots directly off-heap. It lets Python data scientists, quantitative researchers, and ML... - [Python, Data Science & ML — Snapshots from Parquet & CSV (Snapshots from Parquet & CSV (`impulse build`))](https://www.impulsegraph.org/ecosystems/python/snapshots-from-parquet-csv/): If you use Python, PyTorch, C/C++, Rust, Go, C#, or Node.js—or want to compile `.imps` snapshots from Apache Parquet, CSV, or TSV files without writing Java code—the standalone `impulse` CLI (binary: `impulse-graph`,... - [Python, Data Science & ML — PyTorch GNN & Vamana Vector Search (PyTorch GNN Sampling, Embeddings & Vamana Vector Search)](https://www.impulsegraph.org/ecosystems/python/gnn-and-vector-search/): Impulse Graph pairs 128-byte-aligned CSR/CSC graph topology with contiguous `[N, D]` `float32` embedding columns and embedded Section 2.6 Vamana (DiskANN) proximity graphs (`IMP_INDEX_VAMANA_ANN = 0x08`, `v0.10.0`)... - [Native, C-ABI & Systems — C/C++20, Rust, Go, .NET & Node.js (Native Systems & Polyglot C-ABI Hub)](https://www.impulsegraph.org/ecosystems/native/): The Impulse Graph Engine C-ABI Kernel (`impulse-graph-core/impulse-cpp`) is a zero-dependency C++20 runtime (`libimpulse_graph_static.a` / `impulse_graph_static.lib`) providing direct `mmap` `.imps` loading, dynamic... - [Native, C-ABI & Systems — CLI Optimization, Audit & Signing (Native CLI Optimization, Deep Audits & Supply-Chain Signing)](https://www.impulsegraph.org/ecosystems/native/cli-reference/): The native `impulse-graph` (`impulse`) binary in `impulse-graph-core/impulse-cli` combines dataset compilation (`impulse build`) with offline physical layout optimization, multi-tier structural auditing, and Ed25519... - [AI Coding Agents — Using Impulse with AI Agents (AI Coding Agents, `SKILL.md` & `llms.txt`)](https://www.impulsegraph.org/ai/): General-purpose LLMs trained primarily on Neo4j, SQL, and NetworkX codebases often hallucinate OLTP mutation queries (`CREATE`, `MERGE`), global node IDs, or slow client-side `for` loops when writing code against... ## Specs, Ops & Reference - [Normative Specifications — Binary Snapshot Spec (.imps) (Formal Specification: Impulse-Graph C-ABI Binary Snapshot Format)](https://www.impulsegraph.org/reference/spec/format-specification/): This document defines the formal binary protocol specification for the Impulse-Graph C-ABI Binary Snapshot Format. - [Normative Specifications — Schema & Manifest Spec (.yaml) (Schema & Manifest Specification (`manifest.yaml` / `schema.yaml`))](https://www.impulsegraph.org/reference/spec/schema-specification/): This document defines the declarative schema and multi-tablespace manifest format (`manifest.yaml` / `schema.yaml` / `manifest.json`, originating from the Layer 0 normative `.imps.schema.yaml` specification) used... - [Normative Specifications — ImpulseVM, ImpOps & ImpAs Spec (Normative Specification: ImpulseVM Virtual Machine & impOps Instruction Set)](https://www.impulsegraph.org/reference/spec/vm-specification/): This document defines the formal normative specification for the ImpulseVM register machine and its register type system, execution state layout, status flags, and the impOps bytecode instruction set. All... - [Production Operations — Dynamic Service (Blue/Green) (Archetype 1: Long-Lived Dynamic Service)](https://www.impulsegraph.org/deployment/dynamic-service/): The Long-Lived Dynamic Service archetype is designed for environments where upstream data changes over time and you need to serve sub-microsecond, read-only graph queries concurrently without interruption. - [Production Operations — Fixed Snapshot Deployment (Archetype 2: Fixed-Snapshot Analytical Process)](https://www.impulsegraph.org/deployment/fixed-snapshot/): The Fixed-Snapshot Analytical Process archetype is built for heavy offline compute workloads where the graph topology does not change during the execution run. This pattern is widely used in High-Performance... - [Production Operations — Capacity & Growth (Capacity Growth & Scratch Arena Sizing)](https://www.impulsegraph.org/deployment/capacity-growth/): Because Impulse Graph Engine operates over immutable `.imps` binary snapshots, graph capacity growth and per-query scratch memory sizing are handled deterministically without in-place array resizing, stop-the-world... - [Concurrency Model](https://www.impulsegraph.org/deployment/concurrency/): The Impulse Graph Engine is designed for extreme concurrency, aiming to support thousands of simultaneous query threads with sub-microsecond latency. The core philosophy is Zero Shared Mutable State on the Hot Path. - [Production Operations — JVM Memory & FFM Tuning (Memory & Performance Tuning Guide — Impulse Graph Engine (Java))](https://www.impulsegraph.org/deployment/memory-tuning/): This guide covers FFM `Arena` lifecycle management, JVM heap sizing, Transparent Huge Pages, primitive integer width selection, and Vector API tuning for `impulse-graph-java` on Java 21 LTS and Java 22+/25. - [Packages & Distribution](https://www.impulsegraph.org/reference/packages/): Impulse Graph `v0.10.0` is published on Maven Central, PyPI, crates.io, and GitHub Releases. - [SDK & CLI Reference — CLI Reference (impulse-graph) (CLI Reference (`impulse` / `impulse-graph`))](https://www.impulsegraph.org/reference/cli/): Official reference for the `impulse` (`impulse-graph`) command-line utility and compiler suite (`impulse-graph-core/impulse-cli`). The CLI is implemented in Rust and statically links the core C++ engine kernel... - [SDK & CLI Reference — Java SDK Reference (Java 25 SDK Reference (`impulse-graph-java`))](https://www.impulsegraph.org/reference/java-api/): The Pure Java 21 LTS / 25+ Engine (`impulse-graph-java`) is a standalone, zero-dependency implementation of the Impulse Graph Engine and `ImpulseVM`. It uses the Java Foreign Function & Memory (FFM) API... - [SDK & CLI Reference — Python & PyTorch SDK Reference (Python & PyTorch SDK Reference (`impulse-graph`))](https://www.impulsegraph.org/reference/python-api/): The `impulse-graph` Python SDK embeds the C++20 `ImpulseVM` kernel via `pybind11` and exposes `.imps` snapshots directly to NumPy (`np.frombuffer`) and PyTorch (`torch.from_numpy`, `torch.sparse_csr_tensor`). - [SDK & CLI Reference — C-ABI & C++20 Reference (C-ABI & C++20 Reference (`impulse-cpp`))](https://www.impulsegraph.org/reference/c-abi/): The Impulse Graph Engine C-ABI Kernel (`impulse-graph-core/impulse-cpp/include/`) provides the zero-dependency native foundation for C, C++20, Python (`pybind11`), Rust (`ffi`), Go (`CGo`), .NET (`P/Invoke`), and... - [SDK & CLI Reference — Rust Crate Reference (Rust Crate Reference (`impulse-graph`))](https://www.impulsegraph.org/reference/rust-api/): The `impulse-graph` crate (`impulse-graph-core/impulse-rust`) provides `.imps` snapshot reading, SoA slice accessors, fluent traversals, Vamana ANN search, and single-pass snapshot writing. - [SDK & CLI Reference — Go, .NET & Node.js SDKs (Go, .NET (C#) & Node.js SDKs)](https://www.impulsegraph.org/reference/polyglot-sdks/): In addition to Java 25, Python, C/C++20, and Rust, Impulse Graph provides official native bindings for Go (CGo), .NET 8+ (C# / F# P/Invoke), and Node.js / Bun / TypeScript (N-API), all backed by the static C-ABI... - [Benchmarks & Deep Dives — Java HotSpot vs. GraalVM (Java VM Benchmark: OpenJDK HotSpot C2 vs. Oracle GraalVM JIT & Project Leyden AOT)](https://www.impulsegraph.org/benchmarks/java-hotspot-vs-graal/): This benchmark report presents empirical performance comparisons for the Impulse Graph Java VM Engine across OpenJDK HotSpot C2 (with JDK 25 Project Leyden `-XX:AOTCache`) and Oracle GraalVM JIT, alongside... - [Benchmarks & Deep Dives — Multi-JVM Ecosystem (Enterprise JVM Ecosystem Guide: HotSpot, GraalVM, Corretto, Azul Prime & OpenJ9)](https://www.impulsegraph.org/benchmarks/jvm-ecosystem-comparison/): Because the Pure Java 25 Impulse Graph Engine (`impulse-graph-java`) has zero third-party runtime dependencies and relies strictly on standard JDK APIs—Foreign Function & Memory (`java.lang.foreign`), Vector API... - [Verification & Contributing — Contributing Guide (Contributing to Impulse Graph Engine)](https://www.impulsegraph.org/contributing/): Welcome! We are excited to have you contribute to the Impulse Graph Engine. Because our repository spans multiple languages and architectural layers, please review this guide to get your local environment configured. - [Verification & Contributing — Polyglot Validation & Test Process (Polyglot Validation & Testing)](https://www.impulsegraph.org/contributing/polyglot-validation/): This page covers how Impulse Graph verifies correctness across its specification, VM engines, compilers, and language bindings (`impulse-graph-spec`, `impulse-graph-core`, `impulse-graph-java`, `impulse-ocaml`, and...