Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/user-guide/getting-started/20_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ You can use the **Query Builder** to select the graph you created and identify w

![UI Search page](../../assets/images/raphtory_ui_search_baboon_attacks.png)

For more information see the full [User Interface overview](2_UI_overview.md)
For more information see the full [User Interface overview](../user-interface/10_UI_overview.md).
Empty file.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# User Interface overview
# UI overview

## Search page

Expand All @@ -24,19 +24,11 @@ The **Graphs page** consists of the following elements:

## Graph view

![UI Search page](../../assets/images/raphtory_ui_graph_view.png)
![UI Search page](../../assets/images/raphtory_ui_graph_view_v0_16_4.png)

The **Graph view** displays the graph or sub-graph you have selected and provides information on that selection. You can also refine your selection further or save it as a new graph.

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.
- **Selected** - Information about the 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.
For more information, see the [Graph view](20_graph_view.md) page.

## GraphQL playground

Expand Down
125 changes: 125 additions & 0 deletions docs/user-guide/user-interface/20_graph_view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Graph view

![UI Search page](../../assets/images/raphtory_ui_graph_view_v0_16_4.png)

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](../../assets/images/raphtory_ui_graph_view_layout.png)

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](https://github.com/antvis/G6) and many of the [D3 Force-Directed Layout](https://g6.antv.antgroup.com/en/manual/layout/d3-force-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

| Parameter | Description |
|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Collision Radius | The 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 Strength | Sets the strength of the collision force. |
| Link Distance | Specify an ideal edge length. |
| Link Strength | Higher link strength results in distances closer to the ideal. |
| Many-Body Force | The mutual force between nodes, a positive value is attractive and a negative value is repulsive. |
| Many-Body Range | Set a maximum and minimum distance between nodes that where many-body forces are applied. |
| Center Force | Applies a uniform force on all nodes towards the center. |
| Radial Force Strength | Applies a uniform force on all nodes within a specified radius towards the center. |
| Radial Force Radius | Specify a radius for the radial force. |

### Concentric Layout

| Parameter | Description |
|----------------------------|--------------------------------------------------------------------------|
| Use Clockwise | Enable to add nodes in a clockwise order. |
| Maintain Equidistant Rings | Enable to require equidistant rings. |
| Node Size | Effective node diameter. This effects ring spacing to avoid collision. |
| Node Spacing | Minimum spacing between rings. |
| Prevent Overlap | Enable to prevent overlap between nodes. Only works if Node Size is set. |
| Start Angle | Start angle where the first node is added. Specified in radians. |
| Sweep | Angle between the first and last nodes in the same ring. |

### Force Based Layout

| Parameter | Description |
|-----------|-------------------------------------------------------------------------------------------------|
| Gravity | Applies a force on all nodes towards the center proportional to their distance from the center. |
| Speed | Movement speed per iteration of the algorithm. |

### Hierarchical TB Layout

| Parameter | Description |
|----------------------------|------------------------------------------------------|
| Invert | Enable to invert the direction. |
| Direction | Specify how the node hierarchy should be aligned. |
| Node Separation | Separation of nodes in the same rank. |
| Rank Separation | Separation between ranks. |
| Rank algorithm | Specify the algorithm used to assign nodes to ranks. |
| Node Size | Node size used for collision. |
| Retain Edge Control Points | Enable 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](../../assets/images/raphtory_ui_graph_view_settings.png)

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 properties in the graph.

### 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**.

!!! Note
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.
9 changes: 6 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@ nav:
- user-guide/getting-started/0_dummy_index.md
- user-guide/getting-started/10_installation.md
- user-guide/getting-started/20_intro.md
- user-guide/getting-started/30_UI_overview.md
- user-guide/getting-started/40_cli.md
- user-guide/getting-started/50_key_concepts.md
- user-guide/getting-started/30_cli.md
- user-guide/getting-started/40_key_concepts.md
- User interface:
- user-guide/user-interface/0_dummy_index.md
- user-guide/user-interface/10_UI_overview.md
- user-guide/user-interface/20_graph_view.md
- Ingestion:
- user-guide/ingestion/0_dummy_index.md
- user-guide/ingestion/1_intro.md
Expand Down
Loading