Open topic with navigation

# 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`. HPE 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`, HPE 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

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HP Autonomy Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm