Zum Inhalt
HALOWERK

Datenvertragswerk

gomory hu cut tree ledger

From an original symmetric loopless capacity matrix on1..5labelled vertices, capacities0..9 including disconnected graphs, synthesize a deterministic Gomory-Hu cut-equivalent tree, all-pairs minimum-cut values and every tree-edge fundamental partition/crossing-edge capacity witness. Root0; processsources1..n-1, use inclusion-minimal source-side minimumcut and standard parentupdates. Return tree rows ordered by child. Onevertex has emptytree; zero edges retain zero mincuts. Whole claimedtree.

POST https://datenvertrag.halowerk.com/v1/gomory-hu-cut-tree-ledger

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
verticesintegerJa
capacitiesSiehe SchemaJa
claimed_treeSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "vertices",
    "capacities",
    "claimed_tree"
  ],
  "properties": {
    "vertices": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    },
    "capacities": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 5,
          "items": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "claimed_tree": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 4,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "child",
              "parent",
              "capacity"
            ],
            "properties": {
              "child": {
                "type": "integer",
                "minimum": 1,
                "maximum": 4
              },
              "parent": {
                "type": "integer",
                "minimum": 0,
                "maximum": 4
              },
              "capacity": {
                "type": "integer",
                "minimum": 0,
                "maximum": 36
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "vertices": 3,
  "capacities": [
    [
      0,
      1,
      1
    ],
    [
      1,
      0,
      1
    ],
    [
      1,
      1,
      0
    ]
  ],
  "claimed_tree": [
    {
      "child": 1,
      "parent": 0,
      "capacity": 2
    },
    {
      "child": 2,
      "parent": 0,
      "capacity": 2
    }
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →