Graph view

UI Search page

The Graph view consists of the following elements:

  • Global menu - Switch between any of the main pages.
  • Toolbar - Manipulate the current selection.
  • Context menu - Shows contextual information about the current selection.
    • Overview - Information the currently selected graph or sub-graph.
    • Layout - Modify how the layout engine displays the graph.
    • Selected - Information about the selected node or edge.
    • Graph settings - Modify the style properties of a selected node or edge.
  • Graph canvas - Displays the current graph or sub-graph. You can select a node or edge to show it's information in the Context menu.
  • Temporal view - Displays the edges of the current graph or sub-graph as a timeline of events. On longer timescales edges are shown as a heatmap instead of discrete events.

Modifying the graph Layout

Layout tab of the context menu

The Raphtory UI gives you detailed control over how your graphs are displayed. You can use this to match your preferences, build custom visualisations for reports or better fit the shape of your data.

Raphtory's layout engine is built on G6 and many of the D3 Force-Directed Layout parameters are exposed in the Layout tab of the Context menu.

You can select from the following layout algorithms:

  • Default
  • Concentric
  • Force Based
  • Hierarchical TD
  • Hierarchical LR

For each layout, specific Advanced Options can be set to tune the algorithm.

Default Layout

ParameterDescription
Collision RadiusThe collision force treats nodes as circles with a given radius, rather than points, and prevents nodes from overlapping. You can specify the effective radius.
Collision StrengthSets the strength of the collision force.
Link DistanceSpecify an ideal edge length.
Link StrengthHigher link strength results in distances closer to the ideal.
Many-Body ForceThe mutual force between nodes, a positive value is attractive and a negative value is repulsive.
Many-Body RangeSet a maximum and minimum distance between nodes that where many-body forces are applied.
Center ForceApplies a uniform force on all nodes towards the center.
Radial Force StrengthApplies a uniform force on all nodes within a specified radius towards the center.
Radial Force RadiusSpecify a radius for the radial force.

Concentric Layout

ParameterDescription
Use ClockwiseEnable to add nodes in a clockwise order.
Maintain Equidistant RingsEnable to require equidistant rings.
Node SizeEffective node diameter. This effects ring spacing to avoid collision.
Node SpacingMinimum spacing between rings.
Prevent OverlapEnable to prevent overlap between nodes. Only works if Node Size is set.
Start AngleStart angle where the first node is added. Specified in radians.
SweepAngle between the first and last nodes in the same ring.

Force Based Layout

ParameterDescription
GravityApplies a force on all nodes towards the center proportional to their distance from the center.
SpeedMovement speed per iteration of the algorithm.

Hierarchical TB Layout

ParameterDescription
InvertEnable to invert the direction.
DirectionSpecify how the node hierarchy should be aligned.
Node SeparationSeparation of nodes in the same rank.
Rank SeparationSeparation between ranks.
Rank algorithmSpecify the algorithm used to assign nodes to ranks.
Node SizeNode size used for collision.
Retain Edge Control PointsEnable to use control points.

Pre-layout algorithms

Optionally, you can set a pre-layout algorithm that runs before the primary layout algorithm:

  • Concentric - arranged around the center.
  • Dagre LR - arranged using the hierarchical Dagre algorithm from left to right.
  • Dagre TB - arranged using the hierarchical Dagre algorithm from top to bottom.

For Concentric and Dagre TB algorithms you can also specify Advanced Options when used in the pre-layout phase.

Modify styles

Graph settings tab of the Context menu

You can modify the styles applied to nodes and edges from the Graph settings tab of the Context menu.

You can perform both global and local changes which are saved as metadata in the graph. Style metadata for node types is stored on the graph, for edge layers is stored on each edge, and for individual nodes is stored on the matching node.

The format for styles is as follows:

Set the styles for a specified node type

  1. Clear all selections.
  2. Switch to the Graph settings tab of the Context menu
  3. Click the Select Node Type drop down and choose a node type or 'None'.
  4. Specify a colour using the Node Colour palette.
  5. Specify a Node Size value.
  6. Click Save.

Set the styles for a specified edge layer

  1. Select any edge.
  2. Switch to the Graph settings tab of the Context menu
  3. Click the Select Edge Layer dropdown and choose a layer.
  4. Specify a colour using the Node Colour palette.
  5. Specify a Node Size value.
  6. Click Save.

Set the styles for the currently selected node

  1. Select any node.
  2. Switch to the Graph settings tab of the Context menu
  3. Specify a colour using the Node Colour palette.
  4. Specify a Node Size value.
  5. Click Save.

Styles set on an individual node override styles set on a node type. Additionally, styles can only be applied to individual nodes, if you have multiple nodes selected the last node you selected will be updated.