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.

When you specify the origin and destination entities for the paths in which you are interested, the number of origin entities multiplied by the number of destination entities must be less than or equal to 100. The origin and destination entities do not have to be selected in the associated view.

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 and relationships that must be present. When waypoints are included, each entity and relationship will only be included once in the resulting path.

For example, in a 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 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.

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.

    If entities are selected in the link chart, you can add them to the list by clicking the Add Selected Entities button Add Selected Entities above the list.

  4. Under the Origin Entities heading, specify the origin entities for the paths you want to find.
    • Click in the Display Name column and type a keyword. In the list of entities that satisfies the keyword you typed, check the entities 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.
    • Click in the Display Name column and type a keyword. In the list of entities that satisfies the keyword you typed, check the entities to use as the destination of a path.
    • If the appropriate entities are selected in the link chart, click the Add Selected Entities button Add Selected 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 from the list.

    Remove a selected row from the destination entity list.

  6. Optionally, under the Settings heading, check the Max Path Length option to limit the length of paths in the results. Type the maximum number of relationships that can be included in a path.

    For example, if Max Path Length is two, paths are only included in the results if two entities are connected by up to two relationships.

  7. Optionally, check Use Directed Relationships to only traverse relationships from their origin entity to their destination entity when defining a path.
  8. Click Find Paths Find Paths.

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

    Click the Find Paths button

    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. 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 are selected on the link chart.

    No paths may be found in your knowledge graph if the settings you used were too restrictive. Try increasing the length of the allowed path with the Max Path Length setting.

    If you checked the Use Directed Relationships setting and you did not get any results, try reversing the direction of the path you are looking for. Under 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.

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. Click the Find Paths drop-down arrow Find Paths and click one of the appropriate options to add the resulting paths to a new link chart or an existing link chart.

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 Path Filter 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 Path Filter list includes one empty row with an undefined Exclude filter.

    1. In the existing undefined Exclude filter's row, click in the Type column, check entity types and relationship types to which the rule will apply, and 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.

    2. 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

  2. Add an Include Only filter Include Only to the Path Filter list.

    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.

    1. In the empty filter row at the bottom of the list, click in the Filter column and click Include Only Include Only.
    2. Click in the Type column, check entity types and relationship types to include, and click in the empty space below the list.

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

  3. Add a Waypoint filter Waypoint to the Path Filter list.

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

    1. In the empty filter row at the bottom of the list, click in the Filter column and click Waypoint Waypoint.
    2. Click in the Display Name column and type a keyword to find individual entities or relationships to which the filter applies. Check the entities you want to use and click in the empty space below the list.

      One row is added to the list for each entity type and relationship type selected. The selected item's type appears in the Type column.

    Path filters are listed.

  4. 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 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 are selected on the link chart.

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. Click the Add Selected Entities drop-down list Add All Selected Entities To Path Filters and click an option to add rules associated with the appropriate graph items.

    Add All Selected to Path Filters Add All Selected To Path Filters

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

    Add Selected Entities to Path Filters Add All Selected Entities To Path Filters

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

    Add Selected Relationships to Path Filters Add All Selected Relationships To Path Filters

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

    Filters are added to the Path Filter list. By default, one Exclude filter Exclude is added that is specific to each selected entity and relationship, depending on the option that was selected. If the Path Filter list already includes filters, the selected items are evaluated. Filters are not added for selected entities and relationships if the new filter conflicts with an existing rule or where an existing rule already governs how the selected entities and relationships are evaluated.

  3. Click in the Filter column and click Include Only Include Only or Waypoint Waypoint filters if a different type of filter is needed for the specified entity type, relationship type, or the individual graph item.

    Because Include Only filters can only be associated with an entity type or a relationship type and not a specific graph item, an error appears in the row when you make this change.

  4. In the Display Name column, click the Reset to entire type button Reset to entire type to associated the rule with the 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.

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

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

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

    The selected rows are removed from the Path Filters list.

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

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