Control Flow Graph window menu options and toolbar icons

Menu options

The descriptions of layer-affecting and context-affecting options include information about when the option is available. However, if after the (Selected or View) option is applied, just one node displayed, then the option is not available, regardless.

For example, the Collapse in Context option of the Selected menu is available for nodes (not arcs). If you expand a secondary entry, and then remove the context, you cannot apply the Collapse in Context option to any of the nodes currently displayed, because there is no context, and the resulting graph is only one node. If you show the context, you can then apply the Collapse in Context option successfully.
File menu
Controls window closing
Exit
Closes the Control Flow Graph window.
Selected menu
Options applied against the selected arc or node. Most of these options are also available on the pop-up menu you can see by right-clicking a node or arc.
Scroll to Target
Scrolls the control flow graph so that the target node to the selected arc fits within the window area. Available when an arc is selected. See Scrolling for more information.
Scroll to Source
Scrolls the control flow graph so that the source node to the selected arc fits within the window area. Available when an arc is selected. See Scrolling for more information.
Expand to Window
Expands the selected node, and removes the context. Available when a three-dimensional node is selected. See Expanding and collapsing layers and Adding and removing context for more information.
Expand in Context
Expands the selected node, retaining the context. Available when a three-dimensional node is selected. See Expanding and collapsing layers for more information.
Remove Context
Removes all nodes and arcs except those for the selected node and directly associated nodes. Available when a node is selected, and there is context to remove. See Adding and removing context for more information.
Collapse in Context
Collapses the selected node and associated nodes into one node, keeps the display of the context nodes. Available when a node is selected, and there is context to collapse it in. See Adding and removing context and Expanding and collapsing layers for more information.
Zoom In On
Makes elements look larger. Not available when already at maximum zoom. See Zooming for more information.
Zoom Out From
Makes elements look smaller. Not available when already at minimum zoom. See Zooming for more information.
Center On
Scrolls the control flow graph so that the target node is in the center of the display area. See Scrolling for more information.
Mark
Marks the selected node, by changing its color to yellow. Available for unmarked nodes. See Marking and unmarking nodes for more information.
Unmark
Unmarks the selected node, by changing its color from yellow to its functional color. Available for marked nodes. See Marking and unmarking nodes for more information.
Unmark All
Unmarks all marked nodes, by changing their color from yellow to their functional color. Even marked nodes not currently displayed are unmarked. See Marking and unmarking nodes for more information.
View menu
Options applied to the control flow graph in general. Most of these options are also available on the pop-up menu you can see by right-clicking the white space of the graph.
Show Context
Displays the context of the elements currently displayed. Not available for the top level graph. See Adding and removing context for more information.
Collapse to Context
Collapses the currently displayed nodes into one node, and then displays the context of this node. Only available if some context is not shown. See Expanding and collapsing layers and Adding and removing context for more information.
Show Top Graph
Displays all elements, including any context that has been previously removed. Nodes are displayed at the level they previously held. So if a node was fully collapsed before being discarded as part of the context, it is displayed as fully collapsed when the top graph is displayed. For this reason, the top graph may not look the same as the graph displayed when the Control Flow Graph window was opened. Not available when the top level graph is currently displayed. See Adding and removing context for more information.
Expand Layer
Expands each visible three-dimensional node by one layer. The expansion is applied node by node. Nodes not currently displayed (discarded in the context) are not expanded. Not available when all visible nodes are expanded to their maximum (that is, the nodes are all two-dimensional). See Expanding and collapsing layers for more information.
Collapse Layer
All visible nodes are collapsed one layer. Not available when collapsing one layer means that the control flow graph has only one node (use Collapse to Context instead), or if all visible nodes are completely collapsed. See Expanding and collapsing layers for more information.
Expand All Layers
All visible nodes are expanded to their maximum. The resultant control flow graph has no three-dimensional nodes. Not available when all visible nodes are expanded to their maximum (that is, the nodes are all two-dimensional). See Expanding and collapsing layers for more information.
Collapse All Layers
All visible nodes are completely collapsed. The resultant control flow graph has at least two three-dimensional nodes. Not available when collapsing all layers means that the control flow graph has only one node (use Collapse to Context instead), or if all visible nodes are completely collapsed. See Expanding and collapsing layers for more information.
Zoom In
Expands the size of control flow graph elements. See Zooming for more information.
Zoom Out
Contracts the size of control flow graph elements. See Zooming for more information.
Zoom In Rectangle
Lets you draw a rectangle on the control flow graph. The elements in this rectangle are then expanded to fit the control flow graph window area. See Zooming for more information.
Zoom Out Rectangle
Lets you draw a rectangle on the control flow graph. The elements in the control flow graph window area are then contracted to fit into this rectangle, and the rest of the control flow graph contracted to the same degree. See Zooming for more information.
Refresh
Displays the control flow graph at the top level, with all nodes completely collapsed. All marking is removed, but the current node remains current. Always available. See Refreshing and redoing for more information.
Window menu
Controls the display of information in this window
Show Overview
Controls the display of the Overview window. See Overview window for more information.
Show Zoom Slider
Controls the display of the zoom slider. See Zooming for more information.
Show Return Arcs
Controls the display of return arcs in the control flow graph. See Hiding and showing return arcs for more information.
Layout/Redo Layout
Redraws the control flow graph at minimum zoom. See Refreshing and redoing for more information.
Restore Defaults
Repositions and resizes the Control Flow Graph window and the Overview window to their default position. See Restoring defaults for more information.
Help menu
Displays help information
Help Topics
Displays this online help file, showing the Contents tab. To choose a topic for display, click on it. To expand a heading, click the + sign.
Keyboard
Displays the keyboard shortcut keys. See Keyboard shortcuts for more information.
Index
Displays this online help file, showing the Index tab. To look for an index item, start typing in the keyword. As you type letters, the highlight advances to the first word starting with these letters. The items listed below the word show second-level entries. To look at the topic associated with an entry, double-click the entry, or highlight it and click Display. If there is more than one topic associated with the entry, a list box is displayed, listing the topic headings. Select a topic by double-clicking the list. The topic is displayed in the right panel.
Toolbar icons
Refresh
See View menu Refresh option.
Expand
See View menu Expand Layer option.
Collapse
See View menu Collapse Layer option.
Show Context
See View menu Show Context option.
Collapse to Context
See View menu Collapse to Context option.
Zoom In
See View menu Zoom In option.
Zoom Out
See View menu Zoom Out option.
Zoom In Rectangle
See View menu Zoom In Rectangle option.
Zoom Out Rectangle
See View menu Zoom Out Rectangle option.
Redo
See Window menu Layout/Redo Layout option.
Show Overview
See Window menu Overview option.
Show Zoom Slider
See Window menu Show Zoom Slider option.
Show Return Arcs
See Window menu Show Return Arcs option.

Pop-up menus

You can also raise a pop-up menu, by right-clicking a node, an arc, or on the white space of the control flow graph. The options on the pop-up raised by right-clicking a node or an arc are the same as the options on the Selected menu. The options on the pop-up raised by right-clicking the white space of the control flow graph are the same as the options on the View menu.

See also Control Flow Graph window