Episodes

FastRP node embeddings in a graph database
Node embeddings in smollerGraph with FastRP, as Neo4j's Graph Data Science library computes them, the most similar nodes by cosine, embeddings kept on disk, and a page that draws a node's nearest.

Dijkstra's algorithm in a graph database
Weighted relationships and cheapest paths in smollerGraph, with Dijkstra's algorithm and a priority queue, then from both ends, Kùzu's WSHORTEST in Cypher, and weights on the page.

Shortest paths in a graph database
Shortest paths in smollerGraph, with a breadth-first search that keeps each node's parent, then two of them that meet in the middle, shortestPath in Cypher as Neo4j writes it, and a path drawn on the page.

Reverse traversal and query planning
Relationships followed both ways in smollerGraph, with labels and types as tokens to make room for a second chain, Cypher that points left, plans that start from a name, and a fair benchmark in Cypher.

Canvas vs SVG for drawing a Wikidata graph
Mammals and birds from Wikidata in smollerGraph, with room in its records for real names and a label, and a page that draws what a query returns on a canvas, measured against SVG.

Property graph storage and WHERE in C++
Properties for smollerGraph's nodes and relationships, in a chain of records on disk, loaded from facts, asked about with WHERE, and shown in the inspector.

Deploying a graph database to a VPS with Docker
smollerGraph on a VPS, sent over SSH and run with Docker Compose, with Caddy serving the page in front of the database.

Writing a Cypher query parser and planner in C++
A subset of Cypher for smollerGraph, from tokens to a parser, a plan and its rows, in sg query and in the UI.

B+ tree index in C++ to find a node by name
An index on names for smollerGraph, a B+ tree in pages through the buffer pool, so opening a graph no longer reads each node.

Database buffer pool in C++ to keep pages in memory
A buffer pool for smollerGraph, with frames, a page table, pins, dirty pages and the clock, and what it does to a million relationships.

Graph visualization in the browser with D3.js
cpplint, clang-tidy and Abseil's Status for smollerGraph, then a UI, with sg serve answering HTTP and a page that draws the graph with D3, walks it a hop at a time, and shows each node's record on disk.

Graph database benchmark of Neo4j vs Kùzu
A first benchmark on a million relationships, with the same two-hop question asked of smollerGraph, Neo4j and Kùzu.

Graph database in C++ with pages on disk
The graph moves from memory into files of 4 KiB pages, with fixed-size records for nodes and relationships, so it outlives the program.

How graph databases like Neo4j and Kùzu work
Before we build one in C++, why graphs, where the series is heading, and how Neo4j and Kùzu store a graph and run a query.