# Call Graph

> A map of which functions call which, drawn as dots and arrows.

**Field:** Software Development  
**Category:** Code Intelligence  
**Also known as:** Call Hierarchy, Caller Graph, Function Call Graph

## Think of it like

It is like a phone tree. It shows who calls whom, and who they call next.

## Definition

A call graph shows which functions call which other functions. Each function is a dot, and an arrow means this one calls that one. Following the arrows forward shows what a function needs. Following them back shows who needs it. Editors show a small piece of it as the call hierarchy.

## Example

Lucy opens the call hierarchy for parseDate. It shows two callers. Above them is the checkout function that calls both.

## Why it matters

It shows how far a change spreads. It also finds functions that nothing calls at all.

## Common mistake

Missing calls made in odd ways. A function passed around as a value or called by name from a string may not show up.

## Three principles

- **Arrow means calls.** From the caller to the callee.
- **Look forward.** See what a function needs.
- **Look back.** See who needs it.

## Related terms

- [Code Graph](https://learn.benibix.com/term/development/code-graph)
- [Function](https://learn.benibix.com/term/development/function)
- [Change Impact Analysis](https://learn.benibix.com/term/development/change-impact-analysis)
- [Dead Code Detection](https://learn.benibix.com/term/development/dead-code-detection)
- [Find All References](https://learn.benibix.com/term/development/find-all-references)

## Told apart from

- [Call Graph vs Control Flow Graph](https://learn.benibix.com/compare/call-graph-vs-control-flow-graph): People think a call graph and a control flow graph are two names for the same map of a program, and they are not. A call graph is drawn between functions: each arrow means this one calls that one. A control flow graph is drawn inside one function: each arrow is a step, and it splits at each if and loop. Use the first to see how far a change spreads, and the second to find untested paths.

![A call graph of six functions joined by arrows, each arrow meaning calls. The function parseDate is lit up as changed. The two functions that call it, and the one that calls those, are marked affected. Off to one side, a function called oldFormat has no arrows pointing to it and is marked never called, dead code.](https://learn.benibix.com/diagrams/dev4-call-graph.svg)

---

Source: https://learn.benibix.com/term/development/call-graph
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
