Controlling graph relations
You can use the Relations pop-up to control the number of links indicated. The number of links between a node and other nodes is displayed as a glyph on the node. These links come from the relations defined in the data model, see Creating relations.
You can control the number of links indicated on a node using the features in the Relations pop-up. For example, the node for a large multinational company, such as Google, could have tens of thousands of links. The links might include connections to other companies, investors, articles that mention them, or the location of the headquarters. You could limit the relations to show the most meaningful results.
The number represents the number of links. This might be different to the number of nodes that appear when you add relations because some nodes might be connected by more than one link. |
The Relations pop-out has the following controls:
-
Simple: Limits the nodes produced by adding relations to the simple relations that you specify. The list of simple relations that are the relations defined in the data model.
-
Aggregated: Limits the nodes produced by adding relations to the aggregated relations that you specify.
To control the links indicated by the glyph, do the following:
-
From the rightmost-sidebar, click Relations.
-
Click either Simple or Aggregated.
-
Select the relations you want to apply.
Aggregated relations
Aggregated relations are links that count the intermediate entities that are in between two entities in the data model. You can limit the nodes produced by adding relations to the aggregated relations that you specify.
They’re processed through the Elasticsearch back-end system and are well-performing. They also work well with intermediate nodes that have multi-value attributes. For example, articles can mention many companies. By activating the aggregated relation Company → Article → Company (companies mentioned in articles that mention companies) and selecting some nodes, you get a useful graph that displays companies mentioned alongside other companies within articles.
Aggregated relations aren’t counted in the glyph on a node. If you deselect all simple relations, the count on all nodes will be zero regardless of the selections you make under Relations - aggregated. |
It’s often helpful to deselect all simple relations before you enable or disable aggregated relations. |
Configuring aggregated relations
You can modify the following options of the aggregated relation:
- Type
-
Terms (default) shows all terms. Significant terms removes values that are less meaningful. It excludes values that are too common in the dataset to be of interest and highlights those tied to the initial node that may be of interest to your investigation.
- Size
-
The number of returned links by the count of the intermediate entities. Defaults to the top 10.
- Metric
-
Count (default) returns the total number of documents that contain the term. You can select sum, min, max, or average and then select the field to aggregate on.
- Invert arrow
-
To invert the direction of the edge, turn on the Invert arrow toggle. This visually changes the direction of the edge without changing how the aggregated relation is computed.
Creating aggregated relations
-
From the graph browser rightmost sidebar, Click the relations button.
-
Click the Relations- aggregated panel.
-
Click Create an aggregated relation.
-
In the Create aggregated relation window, select the path.
-
Select the term, size, metric, and arrow direction.
-
Click Save relation.
To edit an aggregated relation:
-
Click the Action button (…) of the relation and select Edit.
For more information, refer to the Elasticsearch documentation about the Significant Terms aggregation.
To make the list of aggregated relations cleaner, ensure that you configure the data model to mark when fields are a unique value and when they are a single value. For more information, see Fields tab.