Open topic with navigation

# Method

The method to use to determine the distance between nodes. When more than one path is available between two nodes, HPE Knowledge Graph uses this method to determine the shortest path. You can use the following options:

- Weighted. HPE Knowledge Graph uses the weights assigned to each edge to determine the length of the edge (a higher weight gives a longer path). It assigns weights at index time, according to your edge configuration.
- InverseWeighted. HPE Knowledge Graph uses the inverse of the weights assigned to each edge to determine the length of the edge (a higher weight gives a shorter path). It assigns weights at index time, according to your edge configuration.
- Uniform. HPE Knowledge Graph assigns a length of one to every edge (that is, the length of the path is the same as the number of connections between nodes in the path).
- Count. HPE Knowledge Graph uses the count for an edge as the length of the edge (a higher count gives a longer path). It stores the counts at index time, according to the number of times a particular edge occurs (that is, the number of times a connections occurs between two given nodes).
- InverseCount. HPE Knowledge Graph uses the inverse of the count for an edge as the length of the edge (a higher count gives a shorter path). It stores the counts at index time, according to the number of times a particular edge occurs (that is, the number of times a connections occurs between two given nodes).

Actions: | GetNeighborhood GetShortestPath GetShortestPaths
Type: | String
Default: |
Example: | `Method=Uniform`
See Also: |

© 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