|
smollerGraph 0.20.2
A small graph database, from scratch
|
Superseded by 0016
Episode 1's plan gave smollerGraph a browser UI that "draws query results as a graph with D3, the way Neo4j Browser does". Episode 4 built the first one, before the database had a query language, on a graph of ten animals, "a bit like Neo4j Browser". Why it drew the whole graph, and why with SVG, isn't recorded.
sg serve answers GET /api/graph with the whole graph, GraphJson: each node with its id and name, and each relationship with its id, its two nodes and its type (ep004/step-3).ui/index.html loads D3 7.9 from jsDelivr, and ui/graph.js draws the graph in an SVG element: a group with a circle and a name for each node, and a group with a line, an arrowhead and a type for each relationship (ep004/step-5).GET /api/walk, ep004/step-6), and clicking a node opens an inspector with its record's page, offset and bytes, and its chain (GET /api/node/<id>, ep004/step-7).sg serve serves the page's files from the source tree, which CMake passes in as SMOLLERGRAPH_UI, so a change to the page needs a reload, not a build.Not recorded for this version. 0016 lists what was measured when it was replaced.
ep004/step-5.GraphJson, WalkJson and their routes went, as a query does what the walk form did, and the inspector and the node's route stayed (0016).