Expand Neighbors
Expand neighbors of a specific node to get connected nodes and edges with depth-based traversal.
Path Parameters
node_idstring
Query Parameters
depth?integer
Expansion depth
Default
1Range
1 <= value <= 5limit?integer
Maximum neighbors to return
Default
50Range
1 <= value <= 100include_metadata?boolean
Include metadata in results
Default
trueResponse Body
application/json
application/json
curl -X GET "http://127.0.0.1:14242/graph/expand/string?depth=1&limit=50&include_metadata=true"{
"center_node": "string",
"depth": 0,
"neighbors": [
null
],
"edges": [
null
],
"total_neighbors": 0,
"total_edges": 0,
"metadata": {
"expansion_depth": 0,
"max_limit": 0,
"include_metadata": true,
"query_type": "string",
"error": "string"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}