Zum Inhalt
HALOWERK

Datenvertragswerk

pathwidth optimal layout inventory

For an original labelled simple undirected graph n0..5 including disconnected and empty graphs, derive minimum outside-prefix vertex frontier size over ALL permutations. Return exact pathwidth, ALL minimizing orders in numeric lexicographic order, and full frontiers/bags for first order. Frontier after prefix S is N(S) outside S; first bag at position i is current vertex plus that after-prefix frontier, vertices sorted. These bags cover every graph edge and each vertex occurs over an.

POST https://datenvertrag.halowerk.com/v1/pathwidth-optimal-layout-inventory

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
graphSiehe SchemaJa
claimed_ordersSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "graph",
    "claimed_orders"
  ],
  "properties": {
    "graph": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "n",
            "edges"
          ],
          "properties": {
            "n": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5
            },
            "edges": {
              "type": "array",
              "maxItems": 10,
              "items": {
                "type": "array",
                "maxItems": 2,
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 4
                },
                "minItems": 2
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "claimed_orders": {
      "anyOf": [
        {
          "type": "array",
          "maxItems": 120,
          "items": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 4
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "graph": {
    "n": 5,
    "edges": [
      [
        0,
        1
      ],
      [
        1,
        2
      ],
      [
        2,
        3
      ],
      [
        3,
        4
      ]
    ]
  },
  "claimed_orders": [
    [
      0,
      1,
      2,
      3,
      4
    ],
    [
      0,
      1,
      2,
      4,
      3
    ],
    [
      4,
      3,
      2,
      0,
      1
    ],
    [
      4,
      3,
      2,
      1,
      0
    ]
  ]
}

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 →