Expand a subgraph from root URIs using breadth-first search, returning discovered nodes and edges.
Parameters
Output
application/jsonedges
array
Required
No description available.
nodes
array
Required
No description available.
truncated
boolean
Required
Whether result was capped at maxNodes.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"nodes",
"edges",
"truncated"
],
"properties": {
"edges": {
"type": "array",
"items": {
"ref": "#subgraphEdge",
"type": "ref"
}
},
"nodes": {
"type": "array",
"items": {
"ref": "#subgraphNode",
"type": "ref"
}
},
"truncated": {
"type": "boolean",
"description": "Whether result was capped at maxNodes."
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"rootUris"
],
"properties": {
"depth": {
"type": "integer",
"default": 2,
"maximum": 5,
"minimum": 1,
"description": "Maximum BFS depth."
},
"maxNodes": {
"type": "integer",
"default": 100,
"maximum": 200,
"minimum": 1,
"description": "Maximum nodes to return."
},
"rootUris": {
"type": "array",
"items": {
"type": "string"
},
"maxLength": 10,
"description": "Starting node URIs for BFS expansion."
},
"edgeTypes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter by edge relation slugs. If omitted, all types included."
}
}
},
"description": "Expand a subgraph from root URIs using breadth-first search, returning discovered nodes and edges."
}