Graph view

The graph view is the main model view in GeNIe. It shows a directed graph in which each node represents a variable and each arc represents an influence between two nodes. It is an intuitive environment for creating and editing networks, useful in gaining insight into models by making the structure of their graphs explicit. A slightly modified version of the Graph View is the Cost Graph View. For more information see Cost Graph View section at the bottom of this page.

An example of the graph view is shown below:

Graph view can be enhanced dramatically by structuring the model hierarchically into submodels. Please see the section on GeNIe submodels to learn more about it.

The Layout menu and buttons on the Format toolbar can be used to change the aesthetic properties of the graph view.

Commands for displaying or hiding the grid and aligning the elements in the graph can be found in the Layout Menu.

The Format toolbar has buttons for changing the font, color and size of the labels of the nodes, and buttons for performing the aligning operations on text and on the elements of the graph.

Please see Layout menu and Format toolbar for more information.

Opening a Graph View window

The graph view window is always open by default whenever a new model is opened or created. It is a large sheet with variables placed at user-designated locations. You can select the Open option from the File Menu to open a saved network file. You can create a new network by selecting the New option from the File Menu.

Closing a Graph View window

There are three ways in which you can close a Graph View window:

If you close all the windows of an open network then it will result in closing the file, and if any changes have been made on the network, GeNIe will give you a warning with the dialog box shown below.

You can save the changes by clicking on the Yes button. Click on Cancel to continue working on the network.

Working with Networks in the Graph View:

Each network is opened in a separate graph view sheet on the workspace. Double clicking on a clear area of the graph view sheet will open the Network properties sheet. Right clicking on any clear area of the graph view sheet will display the Network pop-up menu. it can be used to modify various properties of the network.

See Network popup menu for more information.

Working with Nodes in the Graph View:

You can draw new nodes in the Graph View by selecting the appropriate tool from the Tool Menu or clicking on the appropriate button on the Standard Toolbar.

Double clicking on any node will open its Node Properties Sheet. Right clicking on the node will display the Node pop-up menu. It can be used to modify the properties of the node.

By default GeNIe displays the node names within the node icons in the Graph View. If you want GeNIe to display node identifiers instead, select Identifiers in the View menu. to switch the display to identifiers.

Identifiers must start with a letter and can contain letters, digits or underscores only.

Working with Submodels in the Graph View:

Double clicking on any submodel in the graph view will open a graph view sheet for that submodel. You can go back to the main network by either minimizing or closing the submodel sheet using the buttons on the top right of the submodel window. Right clicking on the submodel will display the Submodel pop-up menu. It can be used to modify the properties of the submodel.

Automatic Layout of elements in the Graph View:

GeNIe supplies a function that attempts to place nodes within the main graph or any submodel window automatically using a graph layout algorithm. This function is available as Graph Layout command in the Layout menu.

For more information on Graph Layout command see Graph Layout section in Layout Menu.

Finding a node within a model:

Any node can be found in the network by using the Find command in the Edit Menu. (or use Ctrl+F shortcut)

For more information on how to use the Find command see the Find section in Edit Menu.

To learn how to work in the Graph View, see Tutorial 6 : Working in the Graph View.

Cost Graph View:

The Cost Graph view is a modified version of the Graph View that shows the cost dependencies between the nodes of the network. Shown below is a snapshot of the Cost Graph View.

The Cost Graph View can be invoked by clicking on the button on the Diagnosis Toolbar. In the Cost Graph View mode this button will be depressed.

You can return to normal Graph View by clicking on the button again. The button returns to its normal position to indicate that you are in regular Graph View.

The following changes will occur when the Cost graph view is invoked:

1. The normal arcs [ Dark Blue colored ] will disappear between the nodes and the cost arcs [ Red colored ] will appear between the nodes. If the cost arcs are not visible then they are not yet defined.

2. The Arc button [] changes into a Cost Arc button [].

3. The Cost Arc menu item appears in the Tool Menu.

You can select the Cost Arc tool from the menu or by clicking on the Cost Arc button from the Standard toolbar and add cost dependencies between nodes just as you add normal dependencies between nodes.

See Cost Of Observation section to learn how to use Observation cost in your models.