Add entities and relationships missing from the link chart

As you explore entities and relationships in a link chart associated with a knowledge graph, connections that exist between entities of interest may not be apparent because entities and relationship between the entities of interest are not present on the link chart. Operations allow you to add the missing graph items and reveal how entities are connected with each other.

You can use one of the following options to add graph items to a link chart to show how entities are associated.

  • The Connect button Connect allows you to add relationships that directly connect two entities present in the link chart.
  • The Find Paths button Find Paths allows you to add both entities and relationships that exist along the shortest paths that connect two entities present in the link chart. Entities and relationships along the shortest paths are selected.
  • The Filtered Find Paths button Filtered Find Path allows you to add entities and relationships that exist along shortest paths that connect two specific entities and satisfy all specified conditions.
  • The Find Between button Find Between allows you to identify entities that are directly connected to two or more selected entities in the link chart. Entities and the relationships that connect them to the selected entities are added, but only the identified entities are selected.

These operations are detailed in the sections below.

Whichever option you choose, the analysis is performed and the appropriate graph items are added to the link chart. If Group Mode is turned on, a postprocess searches for and groups any new relationship sets that may exist in the link chart with the added content.

Connect associated entities

When you add a relationship to a link chart, the relationship is added along with its origin entity and its destination entity. However, when you add entities to a link chart, their relationships and related entities are not added automatically. Two entities may participate in a relationship that exists in the knowledge graph but where the relationship is missing in the link chart. The Connect operation adds these missing relationships. Only single relationships that exist between two entities on the link chart are added.

If one entity is selected in the link chart, the Connect operation evaluates all relationships of all types in which it participates. Each relationship is then evaluated against the link chart to determine whether the entity at the other end of the relationship, either the origin or the destination, is also present in the link chart. If both entities are present in the link chart and the relationship isn't present, the missing relationship is added to the link chart.

When many entities in the link chart are selected, the same process applies. All selected entities are evaluated and any missing relationships between the selected entities and other entities in the link chart, including unselected entities, are added. If no entities are selected, all pairs of entities in the link chart are evaluated to determine whether relationships are missing between them.

To add relationships that are missing between two entities present in the link chart, complete the following steps:

  1. In a link chart, select the entities you want to evaluate to determine whether any relationships are missing. Alternatively, clear an existing selection to evaluate all entities in the link chart for missing relationships.

    A link chart contains a set of entities and relationships.

  2. On the Link Chart tab on the ribbon, in the Scope group, click the Connect button Connect.

    Missing relationships are retrieved from the knowledge graph and added to the link chart. The existing layout of entities and relationships is modified as needed to accommodate the added relationships. The originally selected graph items are deselected. The added relationships are selected.

    Relationships between entities on the link chart are added if they are not already present.

    Because the added relationships are selected, it can be difficult to see the relationship types.

  3. Optionally, clear the selection and zoom in to explore the added relationships.

    Clear the selection and zoom in to explore the added relationships.

Find paths between entities

Whereas the Connect operation identifies a single relationship between two entities that is missing, the Find Paths operation allows you to identify a series of relationships that connect two entities in a link chart.

The Find Paths operation examines selected entities to determine whether they are connected by a series of relationships through other entities that may not be present in the link chart. All entities and relationships necessary to describe all shortest paths are added to the link chart.

This algorithm only processes selected entities. A minimum of 2 entities and no more than 10 entities must be selected in the link chart. If an entity group comprising 10 entities is selected, the 10 entities in the group are processed as individual entities. In some situations, you may have to ungroup entities and run the operation several times to evaluate all possibilities.

The algorithm searches for the shortest paths between each pair of selected entities, where a shortest path is the shortest sequence of relationships through which two entities are connected. There can be many shortest paths between two entities. Consider the following scenario:

  • Jane is connected to Sara because Jane sold her house, Sara bought the house, and they used the same real estate agent.
  • Jane is connected to Sara because they both have friends who own old cars and entered those cars in the same car show.
  • Jane and Sara are connected because they went to the same school at different times.

In this scenario, the path through the real estate agent and the path through the school are both shortest paths and are added to the link chart. The Find Paths operation determines the length of a shortest path and retrieves all solutions for all shortest paths from the knowledge graph. All entities and relationships that occur along all shortest paths are added to the link chart and selected.

To determine the shortest paths between entities in the link chart, complete the following steps:

  1. Select 2 to 10 entities between which you want to find the shortest paths.

    Three entities are selected in a link chart.

  2. On the Link Chart tab on the ribbon, in the Scope group, click the Find Paths button Find Paths.

    Entities and relationships representing the shortest paths between all selected entities are retrieved from the knowledge graph and added to the link chart. The originally selected graph items are deselected and the added entities and relationships are selected. When the shortest path includes entities and relationships that were already present in the link chart, these graph items are also selected. The current layout is used to reposition all graph items on the link chart.

    Entities and relationships defining the shortest paths between the selected entities are added if they are not already present.

    Because the added entities and relationships are selected, it can be difficult to see the entity and relationship types.

  3. Optionally, clear the selection and zoom in to explore the added relationships.

    Clear the selection and zoom in to explore the added entities and relationships.

Find paths through specific entities or relationships

The Filtered Find Paths method works in a similar manner as the Find Paths method, except it allows you to selectively traverse or avoid specific entities or relationships and specify the length and direction of the paths you want to find. Open the Filtered Find Paths pane to perform this analysis. You can open it from an investigation or from a link chart.

You can define filters that specify which entity types and relationship types must be included. You can also define filters that exclude entity types and relationship types or specific entities and relationships. Additionally, you can define waypoints—individual entities that must be present or can optionally be present. When waypoints are included, each entity and relationship will only be included once in the resulting path.

For example, in the graph pictured below, if the origin is the entity E, the destination is the entity C, and the entity B is defined as a mandatory waypoint, the shortest path is the one defined by the highlighted entities and relationships: from E to H to A to B to C. Each entity and relationship is traversed only once and the waypoint filter is satisfied.

The shortest path between entities E and C that includes entity B is the one highlighted on the graph.

As with the Find Paths operation, the algorithm searches for the shortest path between the origin and destination entities that meet the specified requirements. All paths found with the same length as the shortest path are included in the result. Any graph items on the shortest paths that are not already present on the link chart are added and selected. If no paths are found that satisfy the requirements, a message is returned indicating that result.

You can save the configurations you use to find paths. This allows you to compare results using different settings and reevaluate the paths after updating the knowledge graph's data, for example.

To determine the shortest path, complete the following steps:

  1. Open a link chart.

    You do not have to preselect the entities and relationships between which you want to find the shortest paths. However, if those graph items are selected, you can quickly reference them when defining the path you want to investigate.

    Entities are selected on the link chart.

  2. On the Link Chart tab on the ribbon, in the Scope group, click the Find Paths drop-down arrow and click the Filtered Find Paths button Filtered Find Path.

    The Filtered Find Paths pane appears. The top of the pane allows you to specify the origin and destination entities for the paths you want to find. The bottom of the pane allows you to specify the rules that the shortest path must follow between the origin and destination entities as well as settings for determining those paths.

    Drag the divider to resize the two parts of the pane, or use the buttons on the divider to alternatively use all available space for either part.

    Drag the bar or use the buttons to resize panels in the Filtered Find Paths pane.

  3. Under the Origin Entities heading, click in the Type column, check entity types of the origin entities, and click in the empty space below the list.

    One row is added to the list for each selected entity type.

  4. Define specific origin entities for the paths you want to find.
    • In one of the rows added for the entity types selected previously, or in a new, empty row at the bottom of the list, click in the Display Name column. Type a keyword to search for matching entities. Hover over an entity in the results list to evaluate it. Check the entities you want to use as the origin of a path.

      Search for and select the origin entities.

    • If the appropriate entities are selected in the link chart, click the Add Selected Entities button Add Selected Entities.

    One row is added to the list for each selected entity.

  5. Under the Destination Entities heading, specify the destination entities for the paths you want to find using the same method as for specifying origin entities.

    The same entity cannot be identified both as an origin entity and as a destination entity. For example, if the origin and destination entities are selected on the link chart and you click the Add Selected Entities button Add Selected Entities, the origin entity will be included in both lists. If this occurs, an error icon Error appears in the row. Hover over the icon to see a message describing the problem. Select the row for the origin entity in the Destination Entities list and click the Remove Selected Entities button Remove Selected Entities to remove it.

    Remove a selected row from the destination entity list.

  6. Click Find Paths Find Paths.

    If any errors are present, the Find Paths button at the bottom of the pane will not be available.

    Entities and relationships representing the shortest paths between the origin and destination entities are retrieved from the knowledge graph and added to the link chart if they are not already present. The originally selected graph items are deselected. The entities and relationships that define all output paths are selected. The current layout is used to reposition graph items on the link chart.

    Entities and relationships defining the shortest paths are selected on the link chart.

  7. Click Save at the top of the pane under the Configuration Name heading.

    The Save Filtered Find Paths Configuration dialog box appears. The current knowledge graph is selected in the Target investigation drop-down list.

  8. Type a name for the current filtered find path settings in the Configuration Name text box.
  9. Click Save.

    A new filtered find path configuration is created in the investigation associated with this knowledge graph and will be saved as part of the current project.

  10. Save the project to save your changes to the link chart and the new configuration.
  11. If you want the output paths to be displayed in a different link chart, click the Find Paths drop-down arrow Find Paths and click one of the appropriate options.
    • Click the Add To menu Add To New and click the open link chart to which you want the output paths to be added. Or, click New Link Chart New Link Chart. The output paths will be added to a new link chart is created using default symbology and the standard organic layout.
    • Click the Create Link Chart Using Template menu Create Link Chart Using Template. Click Default Template to accept all default settings for the new link chart. Click the name of an existing link chart Link Chart to use the same layout and settings as a template for the new link chart.
Note:

The example above assumes you started with a link chart. However, you can start from an investigation instead. On the Investigation tab on the ribbon, in the Tools group, click the Filtered Find Paths button Filtered Find Path.

Add path filters individually

Add filters to find paths that traverse or avoid specific relationships and include specific entities, for example.

  1. Add an Exclude filter Exclude to the list.

    Specify the entities or relationships the paths must avoid. All graph items of a given type or specific entities and relationships can be excluded. By default, the Exclude list includes one empty row.

    1. In the empty filter row at the bottom of the list, click in the Type column.
    2. Check entity types and relationship types to which the rule will apply.
    3. Click in the empty space below the list.

      Check entity types to exclude from the paths.

      One row is added to the list for each entity type and relationship type selected. By default, all entities or relationships of the selected types are excluded when paths are evaluated.

    4. Optionally, click in the Display Name column for a specific filter and type a keyword to find individual entities or relationships to exclude. Check the graph items you want to exclude and click in the empty space below the list.

      Search for and select a specific entity to exclude from the paths

    One row is added to the list for each entity and relationship selected.

  2. Add an Include Only filter Include Only to the list following the same steps as for adding an Exclude filter.

    Specify the entities and relationships the paths must include. All graph items of a given type can be included. Individual entities and relationships cannot be specified.

  3. Add an Optional Waypoint filter Optional Waypoint to the list following the same steps as for adding other filters.

    Specify individual entities that can be present on any result paths. A relationship cannot be defined as a waypoint.

  4. Add a Mandatory Waypoint filter Mandatory Waypoint to the list following the same steps as for adding other filters.

    Specify individual entities that must be present on all paths. A relationship cannot be defined as a waypoint.

    All path filters are listed.

  5. Click Find Paths Find Paths.

    If any errors are present, Find Paths button at the bottom of the pane will not be available.

    Shortest paths are evaluated between the origin and destination entities accounting for the specified filters. Entities and relationships included in the paths are retrieved from the knowledge graph and added to the link chart if they are not already present. The originally selected graph items are deselected. The entities and relationships that define all output paths are selected. The current layout is used to reposition all graph items on the link chart.

    Entities and relationships defining the shortest paths are selected on the link chart.

Note:

No paths will be found in your knowledge graph if the filters you use are too restrictive. Try changing the origin and destination entities, the path filters, or the settings that you use.

Click Reset at any time to remove all existing settings from the Filtered Find Paths pane. This allows you start over by selecting new origin and destination entities and adding new filters. You can also save your current settings as a configuration and use it as a save point as you experiment with different filters. Click the drop-down list under the Configuration Name heading, click a previously saved configuration to restore those settings in the pane, and add or remove filters.

Add path filters using selected items

Instead of adding filters individually, you can add a set of path filters using the entities and relationships that are selected on the link chart.

  1. Select entities and relationships of interest on the link chart.
  2. Next to one of the path filter headings, click the Add Selected Entities drop-down list Add All Selected Entities and click an option to add rules associated with the appropriate graph items.

    Add All Selected Add All Selected

    Rows are added to the path filters list for all selected entities and relationships.

    Add Selected Entities Add All Selected Entities

    Rows are added to the path filters list for all selected entities.

    Add Selected Relationships Add All Selected Relationships

    Rows are added to the path filters list for all selected relationships.

    Filters are added to the Path Filter list. If filters are already present, the selected items are evaluated. Filters are not added for selected entities and relationships if the new filter conflicts with an existing rule or if an existing rule already governs how the selected entities and relationships are evaluated.

  3. In the Display Name column, click the Reset to entire type button Reset to entire type to change the filter to be associated with the entire entity type or relationship type instead of a specific graph item.

    Click the Reset to entire type button in the Display Name column.

    The value in the Display Name column changes from the specific graph item's display name to All Entities or All Relationships.

  4. Press Ctrl or Shift and click rows in the list you want to remove.

    For example, after resetting a filter to apply to the entire entity or relationship type, any additional filters associated with specific graph items of those types are no longer needed.

  5. Click the Remove Selected Path Filters button Remove Selected Path Filters.

    The selected rows are removed from the Path Filters list.

  6. Click Find Paths Find Paths.

    Entities and relationships associated with the shortest paths are added to the link chart if they are not already present and selected.

  7. Click the Save drop-down list at the top of the pane under the Configuration Name heading and click Save As.

    The Save Filtered Find Paths Configuration dialog box appears. The current knowledge graph is selected in the Target investigation drop-down list.

  8. Type a name for the new configuration in the Configuration Name text box.
  9. Click Save.

    A new filtered find path configuration is saved to the investigation.

  10. Save the project to save your changes.

Modify filtered find path settings

If your previous attempts to find paths between specific entities did not produce the expected results, try changing the settings used to find paths in the knowledge graph.

You can reverse the direction of the path you are looking for in different ways. One option is to reassign the origin entities as destination entities, and the destination entities as origin entities. Another option is to change how the direction of relationships in the graph are evaluated. By default, paths are evaluated without considering the direction of relationships in the graph—the Traversal Direction value is set to Any Two-way. Relationships can be evaluated in specific directions instead.

Only the shortest paths between the origin and destination entities are returned as results by default. The shortest overall path connecting any origin entity and any destination entity is determined and all paths of that length are returned. With the Paths between setting, you can return different results that include one path for each origin entity, one path for each destination entity, or one path for each origin-destination combination. The resulting paths may have different lengths, but they will be the shortest path for each combination.

You can also change the overall setting and return all paths that satisfy the criteria instead of only the shortest paths. In this case, a hard limit is set on the number of paths that will be evaluated before results are returned. Changing this number using the Max paths count setting affects the overall performance of the analysis as well as the possible results.

For all scenarios, you can change the minimum and maximum number of relationships between an origin and a destination entity that can exist in a valid result. You can require result paths to be shorter or infinitely long. Evaluating many longer paths can affect the overall performance and the results of the analysis.

  1. At the top of the pane, next to the Origin Entities heading, click the Swap Origin/Destination Entities button Swap Origin/Destination Entities.

    Entities are moved from the origin list to the destination list and vice-versa.

  2. At the bottom of the pane, under the path filters list, click the Traversal Direction heading.
  3. Click the Default drop-down list next to the Traversal Direction heading and choose the direction in which relationships will be traversed by default.

    Any Two-way

    Relationships are evaluated without considering their direction. This is the default setting.

    Forward Forward Direction

    When generating paths, relationships are travelled only from the origin to the destination entity.

    Backward Backward Direction

    When generating paths, relationships are travelled only from the destination to the origin entity.

  4. To specify separate traversal directions for different relationship types, click in the Relationship Type column in the empty row at the bottom of the list under the Traversal Direction heading.
  5. Check the relationship types for which you want to provide specific direction settings and click in the empty space below the list.

    One row is added to the list for each relationship type selected. The selected item's type appears in the Relationship Type column. The default direction for each row matches the value in the Default drop-down list.

  6. For each relationship type, click in the Direction column and click the setting you want to use when evaluating paths in the knowledge graph.
  7. Click the Settings heading at the bottom of the pane.

    By default, the Shortest toggle button is on, and the results will be the shortest paths that satisfy all requirements. The minimum Path length value is one and the maximum value is eight, and the value Any Origin, Any Destination is selected by default in the Paths between list.

  8. Click the drop-down list for the minimum Path length value and click another value such as 3.
  9. Click the drop-down list for the maximum Path length value and click another value such as 5.

    With these settings, paths are included in the results if an origin and a destination entity are connected by three to five relationships.

  10. When evaluating paths to determine which is the shortest, the Paths between setting specifies how the origin and destination entities are considered.

    Any Origin, Any Destination

    The shortest path from any origin entity to any destination entity is determined. All paths with the same minimum length from any origin to any destination are returned. This is the default setting.

    Any Origin, All Destinations

    The lengths of the shortest paths from any origin entity to all destination entities are calculated. All shortest paths to each destination entity are returned. One path must be present for each destination. The resulting paths can have different minimum lengths.

    All Origins, Any Destination

    The lengths of the shortest paths from all origin entities to any destination entity are calculated. All shortest paths from each origin entity are returned. One path must be present for each origin. The resulting paths can have different minimum lengths.

    All Origins, All Destinations

    The lengths of the shortest paths from all origin entities to all destination entities are calculated. All shortest paths from each origin entity to each destination entity are returned. One path must be present for each origin and destination combination. The resulting paths for each combination can have different minimum lengths.

  11. Optionally, turn on the All toggle button.

    Instead of returning only the shortest paths from the origin to the destination entities, all paths that satisfy the requirements are returned as results.

    The Paths between drop-down list is replaced by the Max paths count text box. This setting determines the maximum number of paths that will be evaluated. Any additional possible solutions will not be considered once the default number has been reached. The default value is 100,000.

  12. Optionally, click in the Max paths count text box and change how many paths will be evaluated.

    If more paths are evaluated, the process will take longer and may not complete in a timely manner or at all. If fewer paths are evaluated, fewer origin and destination entities must be provided or more restrictive filters must be used to reduce the possible solutions.

    The default settings for evaluating paths have been modified.

  13. Click Find Paths Find Paths.

    Entities and relationships associated with the result paths are added to the link chart if they are not already present and selected.

Find entities between entities

The Find Between operation examines the selected entities and determines if there are entities in the knowledge graph that are directly connected to two or more of the selected entities. Entities directly connected to only one of the selected entities are not considered. Any entity with more than one degree of separation from the originally selected entities is not considered. For example, this can help identify people who are key intermediaries in a social network or crucial suppliers in the supply chain.

If the in-between entities are missing from the link chart, they are added along with the relationships that connect them to the originally selected entities. In contrast, the Select Between operation determines and selects in-between entities using only the graph items present on the link chart; additional entities in the knowledge graph that satisfy the criteria are not added.

The Find Between algorithm only processes selected entities. A minimum of two entities must be selected in the link chart. If an entity group is selected, each entity in the group is processed individually. When the in-between entities are determined, the originally selected entities are deselected and all in-between entities are selected.

To identify the key entities between the selected entities in the link chart, complete the following steps:

  1. Select two or more entities in which you are interested.

    Three entities are selected in a link chart.

  2. On the Link Chart tab on the ribbon, in the Scope group, click the Find Between button Find Between.

    Entities directly connected to two or more of the originally selected entities are retrieved from the knowledge graph and added to the link chart if they are not already present. The originally selected graph items are deselected and the in-between entities are selected. If required, the current layout is used to reposition graph items on the link chart.

    Entities directly connected to two or more of the originally selected entities are selected.

Related topics