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 page at a glance
| Area | What it is |
|---|---|
| Toolbar | Zoom, history, display switches, design issues, exports, legend and tips (next section). |
| Search box | Top right. Type part of a name to find a code element and put it in the graph. |
| Graph area | The boxes and arrows. Scroll to zoom, drag the scroll bars to move. |
| Warning band | Appears above the graph when the graph is too large (see Large graphs). |
| Dependencies panel | Right side, opened from a node. Lists what the element uses and what uses it. |
| Design issues grid | Bottom, opened by the warning-triangle button. |
| Status line | Very bottom: the path of the selected element (project, namespace, type, method). |
Toolbar reference
From left to right in the screenshot:
| Button | What it does |
|---|---|
| Save graph | Asks 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 graph | Reloads a graph you saved. |
| Zoom in / Zoom out / Reset zoom | Zoom the drawing. The mouse wheel does the same, around the centre of the visible area. |
| Back / Forward | Every 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 nodes | Opens or closes the Dependencies panel on the right. |
| Show metrics | Shows or hides the LOC, Debt, MI and Rating lines in each box (the graph is lighter without them). |
| Compact mode | Draws a lighter graph that is easier to explore when there are many nodes. Use the Dependencies panel to read the links. |
| Show internals | Shows 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 matrix | Opens the same elements in the Dependency Matrix. |
| Export to PNG | Saves the graph as graph.png. Available in the standalone application only; the browser version shows a message instead. |
| Color legend | Explains 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) | Tooltip | Result |
|---|---|---|
| two arrows | Use/Used By | Replaces the graph with this element, what it uses and what uses it. |
| right arrow | Use | Keeps this element and only what it uses. |
| left arrow | Used By | Keeps this element and only what uses it. |
| eye | Insight | Opens the element in Code Insight. |
Exploring: click, double-click, right-click
| Gesture | Effect |
|---|---|
| Click a node | Selects it, highlights it and fills the Dependencies panel for it. |
| Double-click a node | Opens 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 node | Adds 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 Ctrl | Builds a new graph from the chosen nodes, with their dependencies. |
| Hold Alt, click several nodes, release Alt | Builds a graph with only the chosen nodes and the links among them, no extra dependencies. Useful to see how a few elements relate. |
| Mouse wheel | Zoom. |
| Hover a node | Computes 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 node | Context 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

| Item | Result |
|---|---|
| Show on Code Insight | Opens the element in Code Insight. |
| Keep only what used and using me | Graph of the element with both directions. |
| Keep only what I use | Graph of what the element depends on. |
| Keep only what using me | Graph of what depends on the element. |
| Show on Dependency Matrix | Opens 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.

- 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.

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.
| Issue | Condition | Recommendation |
|---|---|---|
| Over-coupled component | Ce above the limit and high betweenness | Split responsibilities and reduce outgoing dependencies. |
| Low cohesion | LCOM above 0.80 | Separate unrelated responsibilities; review the cohesion clusters in Code Insight. |
| Highly unstable | Instability above 0.8 and Ce above the limit | Reduce outgoing dependencies and introduce abstractions. |
| Highly rigid | High Ca and instability below 0.2 | Introduce interfaces or abstraction layers. |
| Hub component | Ce above the limit, high Ca and high PageRank | Refactor into smaller, cohesive components. |
| Critical node | High betweenness or high PageRank | Consider redundancy or architectural decoupling. |
| Bottleneck node | High betweenness but not high PageRank | Reduce dependency concentration or add alternative paths. |
| High change ripple risk | High Ca and Ca above 5 | Stabilize its API and minimize outward impact. |
| Part of a cyclic dependency | Belongs to a strongly connected group of more than one element | Break 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?".
- 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.
- Click the Export menu above the result and choose Export to graph.
- The Call Graph page opens with the elements of the result as nodes.

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