Skip to the page
Chapter 07 · Graph

Memories form a graph.

A rule supports a decision, a failure derives from a session, one fact contradicts another. ee stores those links and finds the memories many others rest on, and the ones that are a topic's only bridge to the rest.

Read all eight chapters on one page

07.1Graph lenses

What the links show.

Similarity search finds memories whose text looks like the task. The links find others that text similarity misses, such as the rule twelve decisions rest on or the only fact connecting two topics. Tap a lens, then a memory.
FrankenNetworkX · graph analytics over memory links

Five lenses on a toy graph of 22 memories.

A toy in your browser · not ee
debug is 10x slowerv0.19 cut by handsingle-writer WALtimeout ≠ OOMrefresh the tappin a warm workermigration V133SIGKILL: no verdictflaky CI testbump the versionsign SHA256SUMSfmt before tagverify before tag--locked requiredrelease checklistno down-migrationrelease notesskip fmt if rushedtask: cut v0.20back up firstdaemon write ownerAPFS export base
workingepisodicsemanticproceduralsupportsderived_fromcontradictsrelatedco_mention

The question

Which memories does everything else lean on?

  • $ ee graph pagerank --limit 10
  • $ ee graph centrality --algorithm pagerank

Rank flows from each memory to the memories it leans on, so it collects in the facts and incidents the rules were built from. In this toy a contradicts link passes no rank.

Highest under this lens

Tap a memory to see its neighborhood.

  • On demand

    Each lens is a command you run over your own store.

  • Off by default

    The features that would change ranking, retention or pack explanations (Pack DNA, proximity, HITS profiles, structural decay), and the knowledge skyline. Each is a graph.feature.* flag.

  • Not available

    Personalized PageRank: a request reports graph_ppr_upstream_unavailable and falls back to textual ranking.

Sources and assumptions
README · Graph and Graph-derived insights command tables · docs/configuration/graph.md · every graph.feature.* flag defaults to false · src/db/mod.rs · MemoryLinkRelation · src/models/context_profile.rs · hits_boost_weights (grounding, orientation, balanced) · src/graph/decay.rs · compute_onion_layers · personalized PageRank: graph_ppr_upstream_unavailable
07.2FrankenNetworkX, in the CLI

Each algorithm answers a question.

Each is a command with deterministic JSON output. Graph feature flags are off by default, and a tool that needs one names the ee config set line that turns it on. Provenance, not the graph, stays the record of where a memory came from.
  • PageRank

    Which memories does everything else lean on?

    ee graph pagerank --limit 10

  • HITS

    Which memories are hubs that point at good ones, and which are the authorities?

    ee graph hits --limit 10

  • Articulation points

    Which single memory, if wrong, cuts a topic off from the rest?

    ee graph articulation

  • Louvain communities

    Which memories form a topic, whatever their tags say?

    ee graph louvain

  • k-core

    Where is the knowledge dense, and where is it thin?

    ee graph k-core --json

  • Link prediction

    Which links are missing? Proposed, never written silently.

    ee graph suggest-links --propose

  • Gomory-Hu proximity

    How tightly are two memories bound, and through what?

    ee proximity <memory-a> <memory-b> --json

    needs ee config set graph.feature.proximity.enabled true

  • k-truss and contradiction clusters

    Which groups of memories hold together, and where do contradictions cluster?

    ee health --robot-insights --json

    needs ee config set graph.feature.structural_health.enabled true

  • Causal paths

    What chain of events led to this failure?

    ee why <memory-id> --causal-explain --json

    needs ee config set graph.feature.causal_explain.enabled true

  • Pack DNA

    Why does this pack look the way it does: dominators, communities, ego graphs.

    ee pack "<task>" --explain --json

    needs ee config set graph.feature.pack_dna.enabled true

  • Knowledge skyline

    The store's posture across layers, communities, trust, age and support.

    ee insights --section knowledgeSkyline --json

    needs ee config set graph.feature.skyline.enabled true