Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/graph-burning-optimal-sequence-inventory

For an original simple undirected labelled graph on0..6vertices, return its minimum number of burning rounds and ALLoptimal ordered sourcevertex sequences in numeric lexicographic order. Eachround chooses one vertex unburned at START of round, while vertices burned in preceding rounds spread to neighbors; the justselected source does not spread until next round. Originaledges require0<=u<v<n,no du

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/graph-burning-optimal-sequence-inventory

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/graph-burning-optimal-sequence-inventory", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"claimed_sequences":[[1,3],[2,0]],"graph":{"edges":[[0,1],[1,2],[2,3]],"vertices":4}}),
});
console.log(await res.json());

Example input

{
  "claimed_sequences": [
    [
      1,
      3
    ],
    [
      2,
      0
    ]
  ],
  "graph": {
    "edges": [
      [
        0,
        1
      ],
      [
        1,
        2
      ],
      [
        2,
        3
      ]
    ],
    "vertices": 4
  }
}