API Reference

hm_find_related

Traverse relationships from a starting node

hm_find_related

Find nodes connected to a given node by traversing hyperedge relationships. The server picks a traversal strategy from your query and optional pattern hints.

Parameters

ParameterTypeDefaultDescription
start_nodestrrequiredStarting node key (must exist in the graph)
querystr | NoneNoneNatural-language hint; influences strategy selection
max_nodesint50Cap on nodes returned (max 500)
max_depthint | NoneNoneDepth bound for decay-style traversal (max 10)
relationship_patternstr | NoneNoneOptional pattern hint for chain traversal
session_idstr"default"Session scope for ranking context
lensstr | NoneNoneOptional lens filter label

Traversal strategies

The server supports three traversal strategies:

StrategyDescription
ChainFollow edges step-by-step from the starting node
DecayWeight connections by distance — closer nodes score higher
Type-boostedPrioritize specific node types in traversal

Response

Returns the subgraph reachable from the starting node — connected nodes with their relationships and metadata.

Example

{
  "start_node": "person_alice",
  "query": "who worked on the launch",
  "max_nodes": 50
}

CLI equivalent

hm find person_alice --depth 2

REST endpoint

POST /api/v1/memory/find-related

Pass the same fields as JSON (e.g. start_node, not key).