
Edges: connecting the dots
Edges let users navigate between entities and let the search engine scope results to a neighbourhood of the graph.
graph.Link(customer, ticket, Edges.HasTicket, Edges.TicketOf);
// source target forward name reverse name (optional)
flowchart LR
Customer -->|HasTicket| Ticket
Ticket -->|ForProduct| Product
Ticket -->|HasStatus| Status
Name edges so traversals read like sentences.
HasTicket, ForProduct, OwnedBy — not RelatedTo or LinkedWith.
Add an edge when a user would:
- Navigate — "all tickets for this customer"
- Filter — "only results for product X"
- Facet — "ticket count by status"
If none of those apply, it's a property.