Dependency Graph
Code Analyzer builds a visual graph of your codebase to show how files are connected.
Why this matters
In real projects, files are not isolated. A change in one file can affect many others.
Without a graph:
- You manually trace imports
- You miss hidden dependencies
- Refactoring becomes risky
With a graph:
- You see relationships instantly
- You understand structure at a glance
- You make safer changes
Example
If your project looks like this:
Adepends onBBdepends onC
Changing C can impact both B and A.
Code Analyzer visualizes this directly in the dashboard.
How Code Analyzer builds it
During analysis:
- Parses each file
- Extracts import/export statements
- Maps relationships between files
- Constructs a graph structure
In the dashboard
You will see:
- Nodes → individual files
- Edges → import relationships
- Highlighted paths → dependency chains
You can:
- Click a node to inspect a file
- Trace dependencies forward and backward
- Identify central or critical files
What to look for
When exploring the graph, focus on:
- Highly connected files (possible bottlenecks)
- Deep dependency chains
- Circular dependencies (if any)
Common use cases
- Understanding unfamiliar codebases
- Debugging unexpected behavior
- Refactoring large modules safely
Next step
Learn how complexity is calculated →