Table of Contents

Impact Analysis & Graph

CodeDB provides two powerful tools for understanding how files connect: Impact Analysis for tracing dependency chains, and the interactive Graph for visual exploration.

Impact Analysis

Impact Analysis traces the downstream effects of changing a file. It answers the question: “If I change this file, what else could be affected?”

Running an Analysis

  1. Open the bottom panel (⌘J)
  2. Click the Impact tab
  3. Click Analyze Current File (or open a file first)
  4. Set the Depth (1–20) to control how many levels of dependencies to trace
  5. Results show all files that directly or transitively depend on the selected file

Reading the Results

The impact tree shows files organized by depth level:

This helps you assess the blast radius of changes before making them.

Graph Visualization

The Graph tab renders your files and relations as an interactive node-link diagram on a canvas.

Using the Graph

  1. Open the bottom panel (⌘J)
  2. Click the Graph tab
  3. Files appear as nodes, relations as connecting edges
  4. Drag nodes to rearrange the layout
  5. Zoom to explore different areas

What the Graph Shows

Tip: The Graph is especially useful for identifying clusters of tightly-coupled files, isolated files with no connections, and circular dependencies.