Prufer Encode
prufer_encodeThe Prüfer code of a tree on vertices 1..n. Edges are a flat list of pairs. The path 1-2-3-4 gives 2,3. The star with center 1 and leaves 2,3,4 gives 1,1. Two vertices give an empty code. Vertices run from 1 to 30. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/prufer-encode
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>"
},
"name": "prufer_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes |