Knowledge Graph
Your knowledge graph is the living structure that emerges from your notes and their connections. Every note is a node, every link is an edge.
Graph Properties
| Metric | Description |
|---|---|
| Nodes | Total notes in your graph |
| Edges | Total links between notes |
| Density | Edges / possible edges β higher = more interconnected |
| Clusters | Groups of densely connected notes (auto-detected) |
How the Graph Grows
Week 1: β β β β β (isolated notes)
Week 4: ββββ βββββββ (some connections)
β²β±
β
Month 3: βββββββββββββ (network emerges)
ββ² ββ± ββ² β β±β
βββββββββββββ
β ββ² β ββ± β
βββββββββββββEarly on, notes are isolated islands. As you add more and link them (manually or automatically), clusters form. Eventually, your graph develops emergent structure β themes and connections you didnβt plan.
Viewing Your Graph
The Graph View page provides an interactive visualization:
- Force-directed layout positions related notes closer together
- Color indicates note type (facts, insights, decisions, etc.)
- Size reflects importance score
- Edge color shows relation type
Graph Operations
Analyze
The analyze operation reviews your graph for:
- Clusters β groups of 3+ notes that are densely interconnected
- Bridge notes β notes that connect otherwise separate clusters
- Orphans β notes with zero links that might need connecting
- Synthesis opportunities β clusters that could benefit from a summary note
Cleanup
Over time, low-importance notes that havenβt been accessed or updated lose relevance. The cleanup system:
- Calculates a staleness score based on age and last access
- Notes below the decay threshold are candidates for pruning
- Pinned notes and notes with importance β₯ 0.7 are decay-resistant
- Always run with
dry_run: truefirst to preview what would be pruned
Graph Statistics API
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://api.cortex-app.dev/api/graph/stats{
"total_notes": 954,
"total_links": 1081,
"note_types": {
"fact": 312,
"insight": 198,
"code_finding": 156,
"decision": 89,
"experience": 78,
"synthesis": 67,
"belief": 54
},
"avg_links_per_note": 2.27,
"orphan_count": 42
}Last updated on