Exploring Memory Analysis Views > Exploring the Heap Graph View > Understanding the Heap Graph
The Heap Graph initially shows only instances or classes that are directly connected to the selected instance, but you can expand the graph in the following ways:
• Double-clicking the arrowheads to the left or right of a node
• Right-clicking a node and selecting Show Referrers or Show References
When the graph expands beyond the size of the panel, you can use the Panner to focus on various areas of the graph or use the scrollbars to move around the graph. You can also use the Scale slider below the graph to enlarge or shrink the graph.
When you select a node in the graph, the corresponding line in the table below is highlighted, and vice versa. The Instance Detail and Leak Doctor toolbar buttons then become available for further investigation of the instance.
The default status color scheme for the Heap Graph is Interesting/Unknown/Uninteresting. You can choose the alternate scheme (Inside/Outside Use Case) from the Color By drop-down list above the graph. You can hover over the color scale at the bottom of the graph to see what they represent. You can change the status of a node by right-clicking it and choosing one of the options under Mark As or Mark Reachable As. If you select the latter, the changed status will be applied to all the nodes below this one in the graph. This can help you to keep track of instances that you have already investigated and have decided are definitely not involved in your leak.