Request a PoCDownload
Product

Platform

All features32 capabilities, from IDE to CICompliance KitsISO 26262, DO-178C, IEC 62304...AI GovernanceControl AI-generated C/C++ codeWhat’s new in 2026Latest version highlightsScreenshotsSee the product in action

Analyze & improve

Coding standardsMISRA, CERT, CWE, AUTOSARArchitecture & dependenciesGraphs, matrix, cyclesTechnical debtMeasured in hours and dollarsQuality gatesStop regressions in CISmart Code CityYour codebase in 3D

Integrations

IDE pluginsVisual Studio, VS Code, CLion...CI/CD pipelinesJenkins, Azure DevOps, GitHub, GitLabSonarQube pluginC/C++ results in SonarQubeExternal analyzersClang-Tidy, Cppcheck, coverageFeature on Demand
Solutions

By need

Functional safetyCompliance kits per standardCoding standardsMISRA, CERT, AUTOSAR, ISO...Legacy modernizationRefactor large C/C++ safelyCode auditExpert review of your codebaseM&A due diligenceAssess technical health fast

By role

DevelopersSoftware architectsTech leadsDevOps engineersEngineering managersProject managers

CTOsCIOs / IT leadersQA engineersSecurity leadersComplianceConsultantsRequest a guided PoC
Industries

Safety-critical

AutomotiveISO 26262, MISRA, AUTOSARAerospace & DefenseDO-178C programsMedical DevicesIEC 62304 softwareEnergy & UtilitiesIEC 61508 systemsEmbedded SystemsFirmware and devices

Enterprise

Financial ServicesTrading and paymentsGame DevelopmentEngines and large C++Software VendorsCommercial C/C++ productsGovernmentAgencies and contractorsAll industries & case studies
Resources

Learn

DocumentationGuides, rules and CI setupKnowledge baseFrequently asked questionsBlogC and C++ code quality articlesRelease notesEvery version since 2009

Customers

Case studiesSuccess storiesTestimonialsWhat users sayOur customersCompanies using CppDependGold Code QualityOpen source projects we rate

Programs & company

Feature on DemandMissing features built for freeFree for open sourceLicenses for OSS and studentsContact usSales and supportEULALicense agreement
DocsPricing
Documentation

User Guides

Call Graph: user guide

What the Call Graph is

The Call Graph draws the dependencies of your code as boxes and arrows. Each box is a code element (project, module, namespace, type, method) and each arrow means "uses". You start from the whole application, then open elements, keep only what a selection uses or what uses it, follow indirect paths and review design issues, without leaving the page.

Every box shows the quality of the element at a glance: its size (LOC), technical Debt, MI (maintainability index) and a debt Rating from A to E.

The Call Graph page: toolbar, graph of projects with metrics
The Call Graph page: toolbar, graph of projects with metrics

The page at a glance

AreaWhat it is
ToolbarZoom, history, display switches, design issues, exports, legend and tips (next section).
Search boxTop right. Type part of a name to find a code element and put it in the graph.
Graph areaThe boxes and arrows. Scroll to zoom, drag the scroll bars to move.
Warning bandAppears above the graph when the graph is too large (see Large graphs).
Dependencies panelRight side, opened from a node. Lists what the element uses and what uses it.
Design issues gridBottom, opened by the warning-triangle button.
Status lineVery bottom: the path of the selected element (project, namespace, type, method).

Toolbar reference

From left to right in the screenshot:

ButtonWhat it does
Save graphAsks for a name and stores the current graph (its elements, kind and dependency mode) in your settings. Saving under an existing name asks before overriding.
Open graphReloads a graph you saved.
Zoom in / Zoom out / Reset zoomZoom the drawing. The mouse wheel does the same, around the centre of the visible area.
Back / ForwardEvery change of the graph is recorded. Go back to the previous graph or forward again, as in a browser. Use them after drilling down or filtering.
Show third-party nodes (cube)Shows or hides third-party elements (STL, Windows SDK, included headers...). Hiding them keeps the graph on your own code. Third-party nodes are never reported in design issues.
Show dependency links on nodesOpens or closes the Dependencies panel on the right.
Show metricsShows or hides the LOC, Debt, MI and Rating lines in each box (the graph is lighter without them).
Compact modeDraws a lighter graph that is easier to explore when there are many nodes. Use the Dependencies panel to read the links.
Show internalsShows the dependencies that exist inside the current graph.
Design issues (triangle with a counter)Opens the issues grid under the graph. The number is the count found in the current graph; see Design issues.
Export to matrixOpens the same elements in the Dependency Matrix.
Export to PNGSaves the graph as graph.png. Available in the standalone application only; the browser version shows a message instead.
Color legendExplains the color of each dependency in the graph.
Tips (bulb)Opens a window with usage tips.

Reading a node

A node, for example Inventory.Domain in the screenshot, shows:

  • a small header with the name (and the parent: for a type, its namespace and project, with a > between levels);
  • the element name in bold and an icon for its kind;
  • LOC (lines of code) and Debt (estimated time to fix its issues, for example 17d 3h);
  • MI, a green, amber or red badge for the maintainability index;
  • Rating, the debt ratio letter from A (best) to E (worst), colored from green to red;
  • four small action buttons (below);
  • when the Dependencies mode is on, counters for how many elements it uses and how many use it.

The fill color of a node comes from the application palette: nodes of the same project share a color, and third-party nodes have their own border style. A selected node is highlighted.

The four action buttons

Icon (left to right)TooltipResult
two arrowsUse/Used ByReplaces the graph with this element, what it uses and what uses it.
right arrowUseKeeps this element and only what it uses.
left arrowUsed ByKeeps this element and only what uses it.
eyeInsightOpens the element in Code Insight.
GestureEffect
Click a nodeSelects it, highlights it and fills the Dependencies panel for it.
Double-click a nodeOpens the inside of the element: for a project you see its namespaces, then its types, and so on. Use Back to return.
Click the used/using counters on a nodeAdds the dependencies of that node to the current graph, or opens the dependency grids.
Hold Ctrl, click several nodes (they get a red border), release CtrlBuilds a new graph from the chosen nodes, with their dependencies.
Hold Alt, click several nodes, release AltBuilds a graph with only the chosen nodes and the links among them, no extra dependencies. Useful to see how a few elements relate.
Mouse wheelZoom.
Hover a nodeComputes its direct and indirect relations and shows a dependency summary: used directly, used indirectly, using me directly, using me indirectly, and direct and indirect cycles.
Right-click a nodeContext menu (below).

Typical path: start from the projects, double-click the one that worries you, Used By on a suspicious element to see who depends on it, then Back to return to the overview.

Right-click menu

Right-click menu on a node
Right-click menu on a node
ItemResult
Show on Code InsightOpens the element in Code Insight.
Keep only what used and using meGraph of the element with both directions.
Keep only what I useGraph of what the element depends on.
Keep only what using meGraph of what depends on the element.
Show on Dependency MatrixOpens the element in the matrix.
Select Issues...Selects issues: on me and child code elements; added since baseline; added or worsened since baseline; fixed since baseline. Baseline items need a baseline analysis.
Select Projects / Modules / Namespaces / Types / Methods / Fields...Selects the related elements of that kind, to continue in other pages or queries.

Dependencies panel

Enable Show dependency links on nodes or click a node to open the panel on the right. Its title shows the selected element.

Dependencies panel on the right
Dependencies panel on the right
  • Quick actions: the same three graph filters as the node buttons (use and used by, use, used by) and Insight.
  • Indirection level: how far to follow. Level 1 is a direct dependency, level 2 goes through one intermediate element, and so on. The drop-down lists only the levels that exist for the element.
  • What I use lists the elements the selection depends on, with their level. What is using me lists those that depend on it. Double-click a row to show that element in the graph.
  • Shortest Path: select an element in one of the two lists, then click the button. The graph shows the shortest chain of elements between the selected node and that element, in the right direction (from the node for "What I use", towards the node for "What is using me"). If nothing is selected, a message asks you to choose an element first.
  • The grids can show a tree when the indirection level is above 1 (in the second panel above, the elements are grouped by project with their namespaces).

Design issues

Click the warning-triangle button. The grid at the bottom lists architectural problems found in the elements currently in the graph, with a description and a recommendation. Double-click a row to jump to the element. The number on the button is the count; it is 0 when nothing is found.

Design issues grid under the graph
Design issues grid under the graph

How they are detected

The graph is analysed with graph metrics: Ca (afferent coupling, who uses me), Ce (efferent coupling, whom I use), Instability = Ce / (Ca + Ce), Betweenness (how often the element is on shortest paths between others) and PageRank (structural influence, 30 iterations, damping 0.85). "High" betweenness, PageRank or Ca means in the top 10% (90th percentile) of the elements of the current graph. The Ce limit depends on the kind of element: project 10, namespace 20, type 15, method 10, other 12. Third-party elements are ignored.

IssueConditionRecommendation
Over-coupled componentCe above the limit and high betweennessSplit responsibilities and reduce outgoing dependencies.
Low cohesionLCOM above 0.80Separate unrelated responsibilities; review the cohesion clusters in Code Insight.
Highly unstableInstability above 0.8 and Ce above the limitReduce outgoing dependencies and introduce abstractions.
Highly rigidHigh Ca and instability below 0.2Introduce interfaces or abstraction layers.
Hub componentCe above the limit, high Ca and high PageRankRefactor into smaller, cohesive components.
Critical nodeHigh betweenness or high PageRankConsider redundancy or architectural decoupling.
Bottleneck nodeHigh betweenness but not high PageRankReduce dependency concentration or add alternative paths.
High change ripple riskHigh Ca and Ca above 5Stabilize its API and minimize outward impact.
Part of a cyclic dependencyBelongs to a strongly connected group of more than one elementBreak circular dependencies to improve modularity.

Each description repeats the metrics (Ce=20, Ca=0, Instability=1.00, Betweenness=0.00, PageRank=0.0000), so you can judge the result. The values depend on the elements displayed, so the same element can be flagged in one graph and not in another: test on a graph that represents the level you want to review (for example all projects, or one project's types).

Large graphs

  • Above 200 groups a band warns that the graph is big.
  • Above the compact limit the graph switches to the compact view automatically and says so.
  • Above the node limit the graph is not drawn in full; the band suggests the Dependency Matrix, which scales better.
  • Both limits are in Settings (link in the band). Use filters (Used By, Use, double-click, Ctrl/Alt selection) to get a graph small enough to read.
  • Hiding third-party nodes and metrics also makes the graph lighter.

Draw a query result as a graph

Any CQLinq query that returns code elements can be shown in the Call Graph, to see how the elements it selects relate to each other and to the rest of the code. For example "which complex methods call each other?" or "who uses the types returned by this query?".

  1. Open the Queries page and run a query that returns code elements. In the screenshot: the methods with a cyclomatic complexity above 10 (15 methods), grouped by project, namespace and type.
  2. Click the Export menu above the result and choose Export to graph.
  3. The Call Graph page opens with the elements of the result as nodes.
Export menu of a query result: Export to graph
Export menu of a query result: Export to graph

From there everything described in this guide applies: use the Use, Used By and Use/Used By buttons of a node to extend the graph, double-click a node to open its inside, check the Design issues, and save the graph. Back returns to the previous graph.

The same menu has other exports: Export to matrix, matrix rows and matrix columns (see the Dependency Matrix guide), Export to treemap (see the Code Map guide), and files in HTML, Excel, XML or text. The Group By buttons choose how the result is grouped and Scope limits the query (here the whole solution).

Tip: if the result is large, narrow the query first. A graph with thousands of nodes is limited by the node limit (see Large graphs); the matrix scales better for big results.

Recipes

  1. Who depends on this project? Right-click it, Keep only what using me.
  2. Why does A reach B? Click A, in the panel select B in What I use, press Shortest Path.
  3. Find the layering problems. Show all projects, hide third-party, enable Design issues, look for cyclic dependency and rigid/unstable items.
  4. Compare three elements. Ctrl-click them, or Alt-click to see only the links among them.
  5. Share a view. Save graph under a name, or export it to PNG.
  6. Keep exploring. Right-click, Show on Code Insight or Show on Dependency Matrix.
Was this page helpful?Give feedbackRequest a feature