🕵️ FGA 07: Every Node You Take 🐶
A bounded graph viewport for investigating one revealed neighbourhood at a time—without mistaking a tidy layout, a filter or a suspicious hairball for evidence.

Hercule Perrot had finally been given a graph that behaved. The nodes had names, the relationships had direction and the edges carried provenance.
The board was no longer empty. It was full enough to become a crime scene: seven nodes became twelve, twelve became fifty, and a well-connected accountant vanished beneath a legally defensible hairball.
Hercule inspected the screen: “Excellent. We have successfully rendered the evidence.”
He paused, one paw on the desk: “Why all of it?”
FGA 06 taught FGA to draw the evidence. FGA 07 asks what Hercule should see.
Our dog raised one ear. The suspect was SHOW EVERYTHING.
How can the graph help Hercule follow a trail without turning every authorised fact into a hairball?
Part I — The Hairball Enters the Building
The first clue was not a node
FGA 04 had already established what a record, relationship, event and piece of evidence meant. FGA 05 had followed a qualified package into persistence. FGA 06 had placed the graph renderer behind an FGA-owned boundary.
None of those decisions said that every revealed object should occupy the board at the same time.
The first useful distinction was therefore not between circles and squares. It was between the evidence Hercule had acquired and the part of that evidence currently placed in front of him.
revealed evidence
≠
visible graph
≠
useful investigation
A relationship may be authorised and revealed without being visible in this particular view. A filter may hide it without deleting it. A layout may move it without changing its meaning. A selected node may become prominent without becoming guilty.
The renderer could draw the scene. FGA still owned the case.
The graph on the board was only a bounded portion of the revealed evidence. Hercule gave that window a name: the viewport. It showed the patch in front of him, not the whole investigation, and asking for more context had to be deliberate.
What the viewport must protect
Hercule wrote four requirements on the back of the first page. They were not decorative principles; they were the conditions under which a graph remained an investigation rather than a screensaver with suspects.
| Requirement | What it protects |
|---|---|
| Bounded view | A readable neighbourhood instead of an accidental whole-case dump. |
| Deliberate expansion | More context without silently discovering unrevealed facts. |
| Semantic presentation | Direction, relationship family, provenance and uncertainty remain legible. |
| Stable interaction | Selection, inspection, camera movement and layout do not mutate evidence. |
The graph also needed to admit when it was showing only part of the room. A partial view is not a dishonest view. A partial view pretending to be complete is.
Part II — Who Gets Into the Room First?
The everything query arrives first
The most obvious opening policy was the easiest to implement:
revealed nodes
+
revealed relationships
↓
render everything
It had an attractive alibi. Nothing was invented. Nothing was missing. The query looked obedient.
It was also how a useful board became a wall of crossing lines.
The problem was not only performance. A full dump made the first investigative decision for Hercule. It told him that every object deserved equal attention, even when the case did not say that. It replaced a question with a flood.
Start with a seed
The first view therefore begins with a deterministic seed set: a small, already-revealed set of nodes and relationships chosen by the case and the viewport policy.
Deterministic matters. The first scene should not change because a database returned equal rows in a different order. It should not rank hidden degree and call the result a clue. It should not smuggle protected truth into the opening picture through a clever ordering expression.
Hercule considered the usual suspects:
| Opening policy | Why it looked attractive | Why it stayed under suspicion |
|---|---|---|
| Everything revealed | No ambiguity and no missing objects | The board becomes unreadable and attention becomes accidental. |
| First rows returned | Cheap and easy to reproduce | Arrival order is not investigative meaning. |
| Highest degree | Busy nodes look important | Hidden connectivity can leak and prominence can masquerade as guilt. |
| Case-defined seed | Small, stable and explainable | It needs an explicit contract and visible scope. |
The case-defined seed survived because it could answer a simple question: Why is this node in the room now?
Tell Hercule what the room excludes
A bounded view needs more than a list of nodes. It needs a small statement of jurisdiction.
revealed what the investigation already contains
visible what this viewport currently renders
available what the current policy may add from revealed evidence
protected what never crosses the player boundary
Those words were deliberately boring. Boring words are useful when the alternative is making visible, revealed and allowed sound like three names for the same thing.
The viewport should report its scope through counts, labels, legend text or an equivalent accessible status. If Hercule sees 12 of 50 revealed nodes, the board must not quietly look like a 12-node case.
The graph may show a subset. It must not disguise the subset.
Part III — Expand With a Warrant
One hop at a time
Hercule selected a visible node. The next temptation was to ask the system for everything connected to it, then everything connected to those things, and eventually the entire county.
The safer gesture was smaller:
visible node
↓ one bounded hop
already-revealed neighbours
↓
new visible context
One hop is not a magic number. It is a readable default and a useful contract. The policy can offer a bounded depth or a deliberate sequence, but every expansion must state what it is allowed to add and how much it may return.
A relationship keeps its direction. A source remains a source. A target remains a target. The graph does not turn a directed statement into a vague cloud merely because the cloud fits the screen more comfortably.
The warrant does not discover secrets
Expansion is a presentation operation over evidence Hercule already possesses. It is not an analytical investigation, an identity-resolution job or a shortcut to the evaluator’s answer key.
The warrant therefore means:
Show me more visible context from the revealed evidence I am authorised to inspect.
It does not mean:
Find me a suspicious connection that the case has not revealed yet.
That distinction protects both the game and the player. If a new relationship requires an analytical provider, a paid question or a server-side command, it belongs to the explicit investigation workflow that arrives in FGA 08. A viewport expansion cannot quietly perform that work while calling itself a camera control.
The server still enforces the boundary. A browser request saying “please include the hidden neighbours” is not an authorisation token. It is a request that should be refused politely and recorded nowhere as evidence.
Collapse without amnesia
Real graphs are less courteous than diagrams. A shared neighbour may be visible through two paths. Collapsing one branch must not remove the object if another visible path still needs it.
A ➜ B ➜ C ➜ A
If Hercule collapses the branch through B, C may remain visible through the second path. If no visible path remains, the node may leave the viewport. Neither operation deletes the revealed evidence.
Selection needs an explicit policy too. An operation that hides the selected node should either preserve its dossier, move focus to a declared successor or explain that the selection has left the current view.
A disappearing suspect is not a clever interaction. It is a missing sentence.
Part IV — Relationship Filters Enter Wearing Different Coats
Not all edges are the same witness
The next suspect arrived wearing four coats. Each edge looked like a line. The statements behind the lines were not interchangeable.
| Relationship family | What it says | What it does not say |
|---|---|---|
| Direct source | A source package stated this relationship. | That the relationship proves culpability. |
| Identity candidate | A method proposed that two records may refer to the same entity. | That the records are the same person. |
| Exact shared-field | Two records share a declared value or field. | That the shared value explains the connection. |
| Player hypothesis | Hercule recorded a working relationship for the investigation. | That the player-created line is a source fact. |
Direction, provenance, time and confidence remain part of the statement.
A dashed player hypothesis may be useful, but it must not dress itself as a source relationship because the detective drew it with a confident paw.
Filtering is not forgetting
A filter changes the presentation. It does not rewrite the case.
all revealed relationships
↓ filter
current visible relationships
If Hercule filters out exact shared-field links, those links remain revealed and can return when the filter changes. The filter does not spend a credit, settle a hypothesis or move an edge into the protected truth zone.
The same rule applies to nodes that become isolated after filtering. The viewport may hide them according to its policy; it must not reinterpret isolation as innocence, guilt or absence.
Counts and the legend need jurisdiction
A number without a scope is a rumour wearing a tie.
“Twenty relationships” could mean twenty in the case, twenty revealed to the player, twenty currently visible, or twenty surviving the selected family filter. Those are different witnesses.
The legend therefore does more than explain colours. It gives the visual vocabulary a jurisdiction: node types, relationship families, direction, uncertainty, selection and investigator-created marks. Counts should use the same vocabulary.
Part V — The Layout Suspects Return
Automatic layout is not automatic clarity
Hercule placed the layout algorithms in a line. They all claimed to be helpful. None claimed to be the detective.
| Layout | Useful alibi | Known weakness |
|---|---|---|
| Force-directed | Reveals clusters and relieves some overlap | Can move the mental map and settle unpredictably. |
| Hierarchical | Makes a directed flow easy to read | Fraud networks contain cycles, shared addresses and several roles. |
| Circle or concentric | Gives a stable overview | Stability alone does not explain structure. |
| Grid | Predictable and easy to compare | It can hide topology behind furniture. |
| Preset positions | Remembers a prepared teaching scene | It needs a fallback when the case changes. |
The choice was not “which graph looks prettiest?”
It was “which arrangement helps Hercule understand the current evidence without losing the scene when the graph changes?”
Layout is presentation state. It may improve legibility. It may not change identities, relationship direction, provenance, confidence or revealed status.
The camera is not the detective
Zoom, pan, fit, focus and minimap controls all move the camera. None of them investigate.
pan move the scene
zoom change scale
fit graph show useful context
fit selection frame the selected neighbourhood
focus centre attention without changing evidence
minimap provide orientation at a smaller scale
Fit-to-selection is not permission to turn one node into a postage stamp that hides every relevant neighbour. A camera control must have investigative intent: enough context to understand what was selected, not merely a mathematically perfect rectangle around it.
The minimap has the same responsibility. At a useful scale it provides orientation. At a ridiculous scale it becomes a postage stamp containing rumours.
The viewport should keep it bounded, optional and subordinate to the graph itself.
Dragging moves furniture
Hercule asked whether moving a node changed the case. The answer was reassuringly dull.
drag node change working position
drag canvas pan camera
release keep evidence unchanged
A manual position is workspace furniture.
It is not a relationship claim.
It is not a confidence update.
It is not a confession extracted from the node by applying enough force.
A useful layout also needs an escape route: reset, fit or restore a deterministic arrangement.
Hercule may move the furniture. He must be able to find the room again.
Part VI — The Graph Learns Manners
Hover whispers, selection testifies
Hover was useful for a quick preview. It was not a safe place to store the case.
A pointer can leave. A touch device may have no hover. A keyboard user needs a focusable route. The preview may whisper; selection and the inspector must provide the durable statement.
hover or focus
↓
supplementary preview
↓ explicit action
node or relationship selection
↓
safe details and provenance
The selected object is an FGA identity, not a renderer object.
The application stores a node ID or relationship ID. Cytoscape, SVG, Canvas or another engine may keep its native object behind the adapter; the case file never receives one.
The list, graph, inspector and case paper are several views of the same revealed investigation. Selecting a row should be able to focus its graph node. Selecting an edge should show its source, target, family, direction and provenance. A second renderer must not produce a second truth.
Unknown does not mean invisible
The graph contained entities that the model could not classify confidently. The art department wanted to hide them until a more flattering icon arrived.
Hercule refused.
Unknown means not specifically classified. It does not mean absent.
A fallback glyph, label and accessible name keep an unknown node in the room. Styling may degrade. Evidence may not disappear because the palette has run out of suspects.
FGA 04 already separated several questions:
what something is
≠
what role it plays
≠
whether it is culpable
≠
whether it was harmed
One person may appear as an employee, director, beneficiary or contact in different statements. A central position may mean many relationships, a useful seed or a layout accident. It never becomes a guilt badge by occupying the middle of the screen.
The graph needs a semantic twin
Noir is an atmosphere. It is not an accessibility strategy.
Colour may support a meaning, but it cannot carry the meaning alone. Shapes, labels, line styles, arrows, text and focus states need to agree.
The semantic path should expose the same investigation without requiring Hercule to decode a canvas with his nose pressed against it. Keyboard focus, an accessible relationship list, persistent details and clear status text are not an alternative game for a different player. They are another witness to the same case.
Reduced motion, high zoom and narrow screens also belong in the contract. A graph that settles beautifully while a user cannot reach its controls has a magnificent alibi and no usable door.
Part VII — The Everything Query Goes Under Cross-Examination
The graph has a speed limit
A bounded viewport without a bounded request is merely a polite front door on an enormous warehouse.
The server enforces node and relationship ceilings. It returns an explicit partial result when the requested projection reaches its limit. The browser cannot turn a normal investigation request into “give me the whole case and let CSS hide the embarrassing bits”.
request
↓
authorised revealed scope
↓
bounded projection
↓
node / relationship ceiling
↓
explicit partial result when necessary
The limit protects performance, but it also protects information. Traversing the hidden complete graph and filtering it only at the end can leak degree, counts, ordering, result size or layout shape. The safe graph is produced from authorised revealed state, not from protected truth with the curtains drawn afterwards.
Test policy before pixels
Hercule wrote the acceptance criteria before asking the browser to admire a screenshot.
| Check | What a passing witness says |
|---|---|
| Deterministic start | The same revealed seed produces the same initial visible graph. |
| Expansion | One bounded request adds only authorised, already-revealed context. |
| Collapse | Shared neighbours and selections follow an explicit restore policy. |
| Filtering | Family filters change the view, never evidence or truth. |
| Layout | Algorithms and dragging change furniture, not semantics. |
| Interaction | Keyboard, pointer, list and inspector paths agree on identities. |
| Limits | Large or partial results say what they are and remain bounded. |
| Accessibility | Meaning survives without colour, hover or a particular renderer. |
Visual regression remains useful. It can show that a label collided, a control disappeared or a minimap swallowed the scene. It cannot prove that a hidden relationship stayed hidden, that a filter preserved evidence or that a central node is innocent. Behavioural and contract tests must carry those statements.
Bodies found later
Qualification cases began to appear in the margins of the file. They were not automatically historical production incidents; they were the failures the viewport had to survive before anyone called it trustworthy.
Collapse ate a selected suspect. The fix was an explicit selection policy.
Two counts were both correct because one counted the case and one counted the visible filter. The fix was jurisdiction in the label.
The layout moved everyone to Belgium. The fix was positional stability and a reset route, not a more impressive animation.
UNKNOWN became invisible when a new type arrived. The fix was a semantic fallback, not a missing icon ticket.
A development “show all” button escaped into a public view. The fix was server-side scope enforcement, not a darker CSS rule.
A screenshot can testify that the furniture moved. It cannot testify that the evidence remained honest.
Part VIII — The Case Stays Open
The viewport gets a boundary, not a badge
The arrest was not a layout algorithm. It was a boundary.
canonical case
↓
player-safe revealed evidence
↓
bounded graph projection
↓
readable viewport
↓
selection, inspection and navigation
FGA 07 gives the graph a policy:
Start from a deterministic revealed subset, expand one hop at a time, filter relationship families without forgetting them, keep layout and camera state separate from evidence, preserve unknowns, expose semantic alternatives and refuse the everything query at the server boundary.
The implementation can now make the graph smaller without making the case less true. That is a more useful superpower than drawing another thousand circles.
What the evidence supports
The current viewport work supports a bounded, inspectable graph experience.
- Nodes and relationships retain stable FGA identities, direction, type, family and provenance.
- Selection can travel between graph and semantic views.
- Layout, dragging, zoom, pan, fit, focus, filters and collapse operate on presentation state.
- Unknown entities remain visible.
- A partial result can admit that it is partial.
The qualification work exercises deterministic fixtures, interaction policy, graph limits, accessibility paths and the failure cases that previously hid behind a convincing picture.
The evidence is scoped to the current FGA contract and workload; it is not a universal claim about every graph size, renderer or future case.
The graph is now a place Hercule can investigate, not merely a place where evidence goes to form a hairball.
What it does not prove
It does not prove that a central node is guilty, that a suspicious-looking graph is fraud, that a filter has changed the truth, that a layout reveals causality or that selecting an edge counts as an investigation.
It does not grant the browser the answer key. It does not make expansion an analytical reveal, and it does not make every large graph readable by adding a minimap and wishing harder.
The viewport has a boundary. The detective still needs a warrant.
Case Closed?
Hercule looked at the board again. Twelve nodes remained visible. More evidence waited in the file, but the screen no longer pretended that a crowded room was the same thing as a useful interview.
The graph had learned three manners:
- Show enough to ask a question.
- Say when the answer is partial.
- Never confuse prominence with proof.
Our dog put one paw on the zoom control and one on the case paper. The next mystery was no longer how to look at the evidence.
It was what Hercule was allowed to ask it to do.
Next in the Series
🕵️ FGA 08: Bring Me the Usual Suspects 🐶
FGA 08 turns selection into an investigation workflow. It takes the next step: contextual actions, hypotheses, requests, costs, confirmation, durable command state and evidence that arrives only when the server says it may.
The graph can now answer “what am I looking at?”
The next article asks “what can I do with it?”
Detectives are difficult clients. Our dog had already selected three buttons.
Source Code
Browse the source code for FGA 07 on GitHub ↗

Every node you take. Every view you make. The graph still needs a warrant.
