Accessing graphs and selections
The SDApplication class contains some helpful methods that let you access the currently active graph , and the current selection within it.
A graph displayed in a specific Graph View can be accessed using a graphViewID .
This method is useful when creating custom graph view toolbars. The ‘Creating Toolbars in Graph Views ’ sample in the Creating user interface elements chapter provides further details.