bfs_search
Finds shortest unweighted paths and reachable node counts in a graph via breadth-first search. Returns visit order and optional target path.
Instructions
Breadth-first search on a graph. Finds shortest unweighted path, visit order, and reachable node count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"edges": "<edges>",
"start": "<start>"
},
"name": "bfs_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Array of edges | |
| start | Yes | Start node | |
| target | No | Optional target node to find path to | |
| directed | No | Whether the graph is directed (default true) |