datenvertrag.halowerk.com/v1/graph-minimum-retraction-family
For an original labelled simple undirected graph on1..5 vertices0..n-1, construct ALL smallest induced vertex subsets admitting a graph homomorphism retraction: every edge maps to an original edge and every image vertex is fixed. Return minimum image order, every optimum image vertex list, every full vertex-indexed idempotent edge-preserving map, image count and total map count. Edges must be uniq
POST
https://datenvertrag.halowerk.com/v1/graph-minimum-retraction-familyUptime100% 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-minimum-retraction-family", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"claimed_images":[{"retractions":[[0,1,2,3,4]],"vertices":[0,1,2,3,4]}],"edges":[[0,1],[0,4],[1,2],[2,3],[3,4]],"n":5}),
});
console.log(await res.json());Example input
{
"claimed_images": [
{
"retractions": [
[
0,
1,
2,
3,
4
]
],
"vertices": [
0,
1,
2,
3,
4
]
}
],
"edges": [
[
0,
1
],
[
0,
4
],
[
1,
2
],
[
2,
3
],
[
3,
4
]
],
"n": 5
}