Graph Interaction Options

The Graph Visualization library supports different types of graph exploration actions. You can inspect graph relationships using Exploration Mode in the visualization panel.

The following figure shows the graph visualization toolbar:

Figure: Graph Visualization Toolbar

Description of the illustration graph_interaction_options.png

The following topics describe the different toolbar actions (in order from left to right):

Using Exploration Mode

Exploration Mode provides a temporary workspace where you can perform any graph-changing operations. Changes made in this mode do not change the original graph. When you exit the mode, the original graph is restored.

You can activate graph exploration mode by selecting the leftmost Exploration Mode control in the toolbar or by invoking an exploration action such as expand, focus, group, ungroup, or drop. The visualization automatically enters Exploration Mode before applying the action.

Figure: Graph Exploration Mode

Description of the illustration graph_exploration_mode.png

When the exploration mode is active:

To return to the unchanged base graph, exit Exploration Mode from the toolbar control or graph indicator.

Expand

You can expand one or more selected vertices to fetch n-hop vertices of the selected expansion type, such as descendants, ancestors, or siblings.

To expand a vertex, click on the specific vertex and click the Expand option in the toolbar. Alternatively, you can right-click on the vertex and click Expand in the context menu.

By default, the expand action fetches 1-hop descendants. It also displays a hop count panel. You can control the hop count through the slider in the panel. The range for the hop count is between 1 and settings.maxNumberOfHops (default value is five). You can drag the slider or edit the hop count value directly in the text box as desired.

You can also enable relationship highlighting to highlight vertices based on their relationship to the selected vertex. When you turn on the Highlight switch, the Relationship section is displayed, and Descendant is selected by default.

The following relationship types are supported:

When you select a relationship type, Graph Visualization recomputes the result using the selected relationship type and the current hop count.

When highlighting is enabled:

When highlighting is disabled, the relationship selection is cleared, relationship controls are hidden, distance-based highlighting is removed, and relationship captions are hidden.

The following figure illustrates expanding on vertex 287. The image shows that the specified hop count value is one and therefore 1-hop descendants are fetched when expanding on the vertex.

Figure: Expand Action

Description of the illustration expand_action.png

Drop Action

You can remove one or more selected vertices from the visualization.

To drop a vertex, select the specific vertex and click the Drop option in the toolbar. Alternatively, you can right-click on the vertex and select Drop in the context menu.

The following figure illustrates dropping of vertex 590.

Figure: Drop Action

Description of the illustration drop_action.png

Focus

You can drop everything in your visualization and fetch n-hop neighbors of one or more selected vertices.

To focus on a vertex, click on the specific vertex and click the Focus option in the toolbar. Alternatively, you can right-click on the vertex and click Focus in the context menu.

The following figure illustrates focused visualization on vertex 934.

Figure: Focus Action

Description of the illustration focus_action.png

Group

You can group selected vertices and collapse them into a single one.

To group vertices, select multiple vertices and click the Group option in the toolbar. Alternatively, you can right-click on the selection and select Group in the context menu.

The following figure illustrates grouping of vertices 287, 590, 934, and 289.

Figure: Group Action

Description of the illustration group_action.png

Ungroup

You can ungroup a group of selected vertices.

To ungroup, select the group and click the ungroup option in the toolbar. Alternatively, you can right-click on the group and click ungroup in the context menu.

The following figure illustrates ungrouping of vertices 287, 590, 934, and 289.

Figure: Ungroup Action

Description of the illustration ungroup_action.png