A Force directed layout is a rendering of a physics simulation in which each node pushes away from other nodes while edges pull the nodes together. There is no intrinsic meaning to node position or edge length in a force-directed layout. Rather, the rendering is designed to result in a graph that is visually pleasing and reasonably easy to navigate.

For more detailed information, see Force-directed Graph Drawing.

GraphXR uses a specific force-directed layout by default, but you can:

  • Adjust force layout parameters for the entire graph, and restore default settings.

  • Randomize node positions for all or part of the graph.

  • Temporarily disable force layout for all or part the graph.

  • Run a brief force layout simulation for the entire graph.

Adjusting Force layout parameters

The Force tab of the Layout panel provides a set of sliders to adjust default layout parameters for the entire graph.

You can adjust parameters as follows:

  • Link Strength. Adjusts how strongly the links (i.e. edges) pull the nodes together.

  • Link Distance. Adjusts the distance between nodes (i.e. edge length).

  • Gravity. Pulls the nodes toward the center of the graph space, that is, the point the view rotates around when nothing is selected.

  • Charge. Adjusts how strongly the nodes push away from one another.

  • Collision. Adjusts the degree to which nodes are allowed to overlap each other. This is especially useful in a 2D layout, to un-stack nodes projected on top of one another. When set all the way to the right, some overlap can still occur.

  • 3D. Compresses nodes on the Z axis to become a flat 2D layout. The layout flattens and can still be rotated in 3D until the slider is all the way to the right.

  • Click the Restore Default Settings button to restore the sliders to their default positions and re-render the default force layout for the selected graph.

Any pinned node is excluded from adjustment, and left where it was placed. This applies to nodes you’ve arranged manually in the project space, and to those pinned automatically using a geometric layout. To release pinned nodes, you must either use the Pin/Release toolbar icon, or the Release icon in the Geometric layout panel.

Creating a 2D Layout

A flat 2D layout can be useful for communicating results of 3D exploration and analysis in data views or reports. You can work in 2D exclusively if desired. However, when exploring high-dimensional data, 3D visualization provides a powerful advantage.

Many Geometric layouts translate well to a 2D layout: Line, Circle, Spiral, and Grid, as well as the Rings or Trees functions.

To create a 2D layout:

  • In the Force layout tab, set the dimension slider all the way to the rightmost 2D position.

    The data are now arranged on a flat plane. The Z axis is not displayed and the view cannot be rotated in 3D.

To save a layout you can
- Save a Snapshot or data View.
- Use the Take Screenshot toolbar icon to download a .png screenshot of the data and legend only. The screenshot receives the name of the GraphXR project, and is saved to your system download (or other location as set in your system preferences).

Randomizing node positions

In Force layout, nodes are rendered in randomized positions. The Randomize Node Positions button lets you render a different random arrangement either for selected data, or all data if no data are selected (except for pinned nodes).

To randomize a force-directed layout:

  1. Select nodes using any method.
    Note: If none are selected, all node positions are randomized, except for any pinned nodes.

  2. Make sure that the label next to the icon reads Disable Force Layout. This means that force layout is currently enabled, and your selection will be randomized according to the current force layout parameters.

  3. Click the Randomize Node Positions button to render a different random force layout for your selection.

Disabling Force Layout

You can disable the force layout for all or part of the graph. This causes selected nodes to be rendered in a random, more compact arrangement that does not use a force-directed simulation. This can help you focus quickly on subgraphs of interest.

To disable force layout and randomize node positions:

  1. Select nodes using any method.

  2. Click the force layout icon. The text next to the icon should now read Enable Force Layout, which means that force layout is currently disabled.

  3. Click the Randomize Node Positions button to display a different random order for your selection.
    The selected data are randomized in a more compact layout, while the data not selected remains in force layout.

    Note: If no data are selected, all node positions are randomized in a non-force layout, except for any pinned nodes.

  4. Click the icon next to Enable Force Layout at any time to return the selected nodes to force-directed layout.

Using Run and Stop

With force layout enabled, you can click Run to run a brief (1- or 2- second) force layout simulation for the entire graph. Click Stop to freeze the layout when you see a rendering you like.