Knowledge Graph 23.3

# Weighting

The weighting type to use for the graph. This weighting type applies to all edge types in the graph. You can use the following values:

- `None`. Knowledge Graph does not assign any weights to edges.

- `Field`. Use the value of a document field as the weight for all edges generated from the document. You can set the WeightFields parameter to define the document field to use, and you can override the document field for each edge type.

  NOTE: Weight values for your documents must be between zero and infinity. If a weight field contains a negative value, the weight is set to zero.

- `Shortstep`. Use the shortstep method to automatically assign weights for all edges. This method determines the similarity of a pair of nodes by comparing the sets of out-neighbors for each node. If the nodes are identical, it assigns a weight of zero to the edge. Edges that connect nodes that are less similar have higher weights, up to infinity for distinct nodes.

The weighting method that you use affects the paths chosen by the GetShortestPath action. `Field` allows you to control how weighting affects your path. `Shortstep` provides a more homogenous path, where the weight acts as the distance between nodes.

NOTE: If you set the WeightFields parameter, but have not set `Weighting` to `Field`, Knowledge Graph logs an error message and exits.

Type: | String
Default: |
Required: | No
Configuration Section: | Edges
Example: | `Weighting=Field`
See Also: | Edge Types Configuration Parameters WeightFields GetShortestPath action IndexDocs action RegenerateWeights action

Copyright 2023 Open Text
Version 23.3 | Last updated June 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Knowledge Graph 23.3

Topic Title: Weighting