🕸️Code Graph
Also known as Codebase Graph, Code Knowledge Graph, Code Property Graph
A map of a codebase as dots and lines: its parts and how they link.
Think of it like
It is like a family tree. But it shows the parts of a program and how they link.
Example
An AI agent asks the code graph what uses the User class. It follows the lines and gets 3 services and 11 functions.
Why it matters
Most questions about code are about links. What breaks if I change this? Where does this data go?
Definition
Common mistake
Key takeaways
- 1Dots are parts. Files, classes and functions.
- 2Lines are links. Calls, imports, extends.
- 3Walk to answer. Follow the lines to find out.