> ## Documentation Index
> Fetch the complete documentation index at: https://docs.10et.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Graph Edges

> Structured relationships between memories

Memories connect to each other via typed edges, creating a knowledge graph.

## Edge Types

| Type          | Meaning                       | Example                                              |
| ------------- | ----------------------------- | ---------------------------------------------------- |
| `updates`     | Supersedes previous knowledge | New benchmark → updates old benchmark                |
| `contradicts` | Invalidates previous belief   | "Pooling helps" contradicts "Keep connections short" |
| `related_to`  | Topically connected           | Eval system → related to agent config                |
| `caused_by`   | Causal chain                  | Test failures caused by dependency upgrade           |
| `part_of`     | Hierarchical grouping         | Session entries → part of milestone                  |

## Creating Edges

```bash theme={null}
curl -X POST http://localhost:4360/api/memory/link \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"from": 42, "to": 17, "type": "updates"}'
```

## Querying Edges

```typescript theme={null}
// Get what a memory updates
const links = await getLinksFrom(memoryId)

// Get what updates a memory  
const links = await getLinksTo(memoryId)
```

## Future: Contradiction Detection

When a new memory contradicts existing knowledge, the system will automatically flag it and create an `updates` or `contradicts` edge.
