Code graph
Browse repository history and the code map, find symbols, and trace what affects a function or statement.
On this page
The Graph page lets you explore a repository at a particular commit. Use the Context Map to find code, follow calls, and trace what a function depends on or affects. Open Graph in the sidebar, or press G then C.
See Languages and limits for supported languages and analysis coverage.
Choose a repository, scope and commit
Choose a Repository above the commit history. Merget remembers the last repository you opened in this browser. A repository Merget is turned off for is listed with · off after its name: you can browse its commits and open the maps already built for it, but Merget builds no new map for it until it is turned on. The map header shows the selected revision and its map status:
| Status | Meaning |
|---|---|
| Map ready | The commit's map is available. |
| Building | A build is in progress. The status adds how long it has been running and how long builds of this repository usually take, for example Building · 40 s · usually about 2 min. Merget estimates that from the repository's recent builds or, before its first build, from the size of the commit. Without an estimate, it reads Building… alone. |
| taking longer than usual | The build has run for more than twice its usual time, plus half a minute, for example Building · 6 min · taking longer than usual. It is still running, and the map opens when it is ready. |
| Waiting for a build slot | Your organization's other graph builds are using every build slot, and the message over the map adds "(your organization's builds are busy)". This build starts as soon as one of them finishes. |
| Checking… | Merget is checking whether the map exists. |
| Not built | Select Build to create the map. A commit whose build Merget stopped retrying after repeated failures shows this too; Build asks for it again. |
| Can't build | Merget cannot build a map for this commit now, and offers no Build. Hover the status, or read the message over the map, for the reason. See When Merget can't build a map. |
History scope, above the commit list on the left, filters to all branches and pull requests, one branch, or one pull request. Select a commit to inspect it. Refresh branches and commits reloads the history. On a narrow screen, open Graph options to choose the repository and history scope.
Click Selected commit details in the map header to read the full commit identifier and subject. Find a symbol opens search; Graph options holds layers, cluster filters, coloring and behavior exploration. These controls open over the map without moving it. Press Esc to close the active panel.
If the map still shows another commit, showing and its short SHA identify the code currently on screen. Check this before drawing conclusions about your selected revision.
The address preserves the repository, revision, selected symbol and view. Copy it to share your place with someone who has access to the repository.

Choose the repository and commit before interpreting the map.
What to look for
- The toolbar identifies the repository and selected commit. Map ready means a map is available.
- The left pane shows Git history and map availability. Select a commit to explore its code.
Build a graph
Selecting a commit without a map does not start a build. Click Build for the selected revision and wait for the progress indicator. The map opens when it is ready. A small repository's map is usually ready within seconds; a large repository's can take a few minutes. For a repository with no map yet, Merget offers to build its default branch.
If no default branch is available, set one on GitHub first. To have maps prepared as code changes, see Keep the Context Map ready.
Graph capacity
Your organization has two daily graph allowances, counted separately. Each resets at 00:00 UTC:
Graph builds. The builds you ask for, and the builds Merget prepares ahead of time (see Keep the Context Map ready).
Graph questions and exports. Exports, inspector tools, comparing a commit selected in the history, looking up its callers, and agents' graph questions.
When today's graph builds are used up, Merget starts no new build until the reset, and the page says "Your organization has used today's graph builds." Maps already built still open, and graph questions about them still answer. When today's graph questions are used up, exports and inspector tools answer "The organization's daily graph quota is used up." until the reset; builds still run, and maps already built still open.
Your organization also runs a limited number of graph builds at once. A build you ask for while they are all busy waits its turn, and the status reads Waiting for a build slot until it starts. If Merget itself is busy with other graph builds, follow the page's waiting message.
When Merget can't build a map
Merget starts a build only when the build can run. When it can't, the status reads Can't build, Build is not offered, and the message over the map says why and what fixes it. For a repository Merget is turned off for, the page says so as soon as you open it. Maps already built for the repository still open.
| Message | Why | What to do |
|---|---|---|
| "Merget is off for …" | Merget is turned off for the repository, and it builds graphs only for repositories it is turned on for. | Select Turn it on, which opens the repository's settings on Repositories, then turn on Enable Merget and click Save. This takes Maintain or Admin access on GitHub. Without that access, the message also reads "Needs maintain or admin access on GitHub." Ask someone who has it to turn the repository on. See Turn a repository on. |
| "Merget's GitHub App can't read … right now." | The Merget GitHub App is suspended on the repository's GitHub account, or its installation no longer includes the repository. | Select Open GitHub settings: the account's card in Settings › GitHub shows whether the App is suspended. Have a GitHub admin unsuspend it, or add the repository under the installation's Repository access on GitHub. See Suspended installations and Change which repositories Merget can see. |
| "… is no longer on GitHub." | The commit's branch was deleted or force-pushed, so GitHub no longer has the commit and Merget can't fetch it. | Select Clear the selection and pick a commit that is still on a branch. Building the same commit again does not help. |
When the organization has used today's graph builds, a build you ask for is refused: the message over the map says "Your organization has used today's graph builds.", and that commit offers no Build. Any other commit without a map still shows Build, but Merget refuses it with the same message until 00:00 UTC. Maps already built still open, and the graph tools still answer. After the reset, click Try again, or Build on another commit. See Graph capacity.
Commit history
The left pane shows Git history, including commits whose maps have not been built. Colored lanes show branches; rows include the commit's subject, author, age, branch or pull request references, and map availability. Map status is separate from GitHub's checks.
Click a commit, or focus it with the arrow keys or J/K and press Enter.
A ready map opens immediately. An unbuilt commit offers Build.
Use Load older commits to continue through history.
On a wide branch history, scroll horizontally to inspect the lanes.
Drag the divider to resize the history and map panes.
On a narrow screen, use Show commits and Show map to switch panes. Selecting a commit takes you to its map.
What a commit changed
Selecting a commit highlights changed methods and related callers when comparison data is available. The chip at the bottom explains what is highlighted. Choose Changed methods to inspect a listed method, use the frame button to fit the map to the highlight, or close the chip to clear it.
This is a code relationship view, not a complete diff: edits inside a method may not appear. Read any notice about a partial comparison before drawing conclusions. A removed method is absent from the new map, although its callers can still be highlighted.
The chip asks for confirmation when more data is needed. Look up obtains additional caller information; Build and compare prepares a missing map for comparison. Both count as graph questions, and Build and compare also uses one of the organization's graph builds when it builds a map; see Graph capacity. If a request stops, follow the message and use Try again when offered.
Move around the map
Symbols are grouped into modules by directory. Outside the tree contains code defined outside the repository, such as library functions.
Drag to pan. Scroll to zoom around the pointer; hold Shift while scrolling to pan sideways. On touch screens, pinch to zoom.
Use Zoom in, Zoom out and Fit map to change the view. Focus selected symbol centers your selection.
Hover a symbol to highlight its neighbors and read its name, kind, path and connections.
Select a symbol to open its details on the right.
The overview keeps background connections limited so the map stays readable. Hovering or selecting a symbol traces its relationships. An overview with few visible lines does not mean the code has few relationships. The names of a large repository's most connected symbols are shown at every zoom, spread across its modules, wherever they fit beside each other, so you can find your way before opening anything.
Small repositories
Small repositories are drawn whole instead. Every symbol is a ring, larger the more connections it has, laid out to fill the map. Names are shown wherever they fit, the best connected first; zoom in to read the rest. The connections the map holds for the layers you show are drawn as they are. Nothing needs opening: each module has a color of its own, and a small square marks each file, with its name where there is room.
Selecting a symbol keeps the whole map in view. When the inspector opens beside the map, or over it on a narrower screen, the map is laid out again in the room left. Search finds symbols, files and modules as on a larger map; choosing a file or module moves the map to its symbols.
When a module has more connections than the overview keeps, the legend says how many of how many are drawn. Select a symbol to list all of its relationships in the inspector.
Open modules
On a larger repository, zooming in reveals more detail in the modules you are viewing. You can also focus a module and press Enter to open it. Up to six modules can be open at once.
Open modules have chips above the map. Close a chip to collapse that module, or choose Collapse all to close them together.
Use the keyboard
The map is one Tab stop. Arrow keys move between symbols; Enter or Space selects one. Enter on a selected method opens its behavior. Esc clears the selection and returns focus.
See Keyboard shortcuts.
Search for a symbol
Press /, or use Find a symbol above the map. Search by symbol, file or module name. Use ↑ and ↓ to move through the results, or Home and End to reach the first and last. Select a result or press Enter to open it. Merget opens the relevant module and centers the result; on a small repository's map it moves to the result.
Press Esc in the search box to dismiss the results while keeping your text, then again to clear the text and close search. If symbols could not be loaded, use Try again; files and modules may still be searchable.

Search by symbol, file or module to reach the code you need.
What to look for
- Use Find a symbol or press /. Each result gives a location.
- Choosing a result opens its module, selects the symbol and moves the map to it.
The legend
The compact legend shows the number of symbols and modules and how many connections are drawn: on a larger map, the limit on background connections. Expand Layers and map details for the symbol shapes, module colors and connection controls.
Layers
Layers are kinds of relationship, such as Calls, Contains, Imports and Inherits from. Calls and imports are shown by default in the repository map. Open Graph options, then Filter edge layers, to show or hide layers; you can also use the expanded legend. The address preserves your choices.
A solid call line is a call Merget confirmed. A dashed one is less certain and may be wrong. On a large map, the legend explains when only part of a layer is drawn. Open a module for its local detail.
Filter clusters
Open Graph options, then Filter clusters, to narrow the visible modules. Search clusters finds a module by name. Select or clear individual rows, choose All to restore every cluster, or Clear to hide them all. The menu shows how many clusters remain visible.
A hidden cluster is filtered out of the view; it has not disappeared from the repository. Restore it before interpreting a map that appears empty.
Color by community
Open Graph options and use Color to choose Module, the default, or Community. Module colors follow directories. Community colors show groups of related symbols that can span several directories.
The legend names the colored communities and counts the others; smaller communities appear gray. Hover a symbol or open its details to read its community. Your choice is remembered in this browser for both the Graph page and the queue's Code view.
If community data is unavailable for a map, Community is unavailable and the map uses module colors. The control explains why.
Trace behavior
To explore one function's statements, select it and choose Explore behavior in the inspector, or open Graph options and click Trace behavior. If you have not selected a method, the Choose a method panel lets you search for one.
The behavior view names the function and file and offers five lenses:
| Lens | Use it to |
|---|---|
| Flow | Follow the order in which statements can run. |
| Control dependencies | See which conditions control a statement. |
| Data dependencies | Trace definitions, uses and references. |
| Combined dependencies | Look at control and data relationships together. |
| Calls | Inspect calls, arguments and receivers. |
Statements opens a list ordered by source line. Select a row to inspect it. Advanced lets you choose individual layers. A notice tells you when dependencies are unavailable or the view is partial.
Open Graph options and use Choose function to inspect another method. Back to repository returns to the repository map.

Trace behavior to follow a function’s control flow and data relationships.
What to look for
- Choose a lens to focus on flow, data or both. Statements opens a searchable list of steps in the function.
- Select a statement to inspect its relationships. Back to repository returns to the Context Map.
The inspector
The details panel shows the selected symbol's kind, name, location, code and relationships. Its Symbol section lists the repository, the file and line, the module, and how many relationships point into and out of the symbol. A count shown as ≥ is a lower bound, and the section says so under it: some relationship layers are not loaded on the map, or the overview leaves some connections out. Open in GitHub opens its source at the map's commit. Close the panel with Close details or Esc.
Related symbols are grouped by layer. Follow a row to inspect its other end. When the view is partial, the panel says that some relationships may be unavailable.
If you switch to a commit that no longer contains the selected symbol, choose Clear selection and find the symbol in that map.

Selecting a symbol opens its inspector.
What to look for
- The name and file location identify the selected symbol in the commit you are viewing.
- The Symbol section gives the repository, the file and line, the module, and how many relationships point into and out of the symbol.
- The inspector gives tools for exploring callers, callees, the blast radius and related code.
Inspector tools
Tools run when you click them:
| Control | What it shows |
|---|---|
| Callers | Where the selected method is called. Choose Depth of 1 hop or 2 hops. |
| Callees | What the method calls, using the same depth choice. |
| What affects this? | Code that a method or statement depends on. |
| What does this affect? | Code affected by that method or statement. |
| Trace a variable | Definitions and uses of a named variable in the method. Enter a name and click Trace. |
| Symbols | Definitions in the selected file. |
These questions count against the organization's daily graph questions; see Graph capacity. A long answer may be shortened; ask about a smaller piece of code if that happens. If a request fails, click the control again to retry.
Coverage varies by language. An empty callers list means no callers were found in the available analysis; it is not proof that none exist. See Languages and limits.
Coding agents can ask the same kinds of questions, except the blast radius below, which only the Graph tab asks for. See Connect coding agents.
Blast radius
For a method, open Blast radius in the inspector to see what calls it, what calls those, and so on, up to depth 3. Each method appears once, at the shallowest depth from which it reaches the selected method. Choose Depth 1, 2 or 3; the count for each depth and its methods are listed, and a long depth ends with "… and N more".
Merget asks only when you open the section or change the depth, never when you hover or select a symbol or choose a commit, and each answer counts against the organization's daily graph questions. The section starts closed for each symbol and commit. An answer for a deeper depth also serves the shallower ones. When Merget had to shorten the radius, the section says so, and a count shown as ≥ is a lower bound. When only some calls between the methods were left out, every method is still listed and the map draws fewer lines. If depth 3 is unavailable, the radius is built from the callers up to depth 2.
Show on canvas lights the radius on the map: the method and its direct callers most strongly, the deeper ones beside them, while the method stays selected. The chip at the bottom of the map gives the same count as the section; the frame button fits the map to the radius. Close the chip to clear it; selecting another symbol clears it too.
Status and error messages
| What you see | What to do |
|---|---|
| No repositories yet. | No GitHub account is connected to the organization. An owner connects one and enables a repository. See Enable repositories. |
| Link your GitHub account | GitHub is connected, but no GitHub account is linked to your Merget account, so Merget can map public repositories only. Click Link GitHub account. See Which repositories you see. |
| No repositories to show. | Merget confirmed with GitHub that none of your linked GitHub accounts can read any repository connected here; the sentence names them. Check them in Settings › Account, add the one you use in that GitHub organization, or ask a repository admin on GitHub for access. |
| No repositories to show right now. | Merget could not confirm your access, so nothing is claimed about your account. Wait: Merget asks again on its own while the page is open. While it is still checking, the page shows Loading repositories… instead, never one of these. |
| No graph or Not built | Select a revision and click Build. |
| Building…, Loading…, Waiting for a build slot, or a capacity notice | Wait for the page to finish. |
| taking longer than usual | The build is still running; wait for it. If it fails, click Build again. |
| Can't build, with "Merget is off for …", "Merget's GitHub App can't read … right now." or "… is no longer on GitHub." | Follow the message; see When Merget can't build a map. |
| "Your organization has used today's graph builds." | Wait for 00:00 UTC, then click Try again. Maps already built still open, and the graph tools still answer. See Graph capacity. |
| "The organization's daily graph quota is used up." | Exports and inspector tools answer again after 00:00 UTC. Builds still run. See Graph capacity. |
| Build failed or map could not be computed | Click Build again. |
| Unknown revision | Check the address or clear the selection and choose a listed commit. |
| Unsupported commit | Check Languages and limits; a retry will not add unsupported coverage. |
| Loading or service error | Use Retry, or refresh the page if the Graph page itself could not open. |
Troubleshooting has more cases.
Keep the Context Map ready
Merget can build maps for new target-branch and open pull request commits ahead of time, so the Graph page opens them without waiting. These builds count against the organization's daily graph builds, and Merget stops preparing them before that allowance runs out, to leave some of it for the builds you ask for. Whether a repository's maps are kept ready is a setting Merget manages for each repository, not part of its drawer; contact support to have it turned on. See What Merget manages.