Zum Inhalt
HALOWERK

Datenvertragswerk

partial cube cut coordinate embedding

For a fully captured simple undirected graph on original vertex labels0..n-1, n1..5, edge_mask bits name lexicographic pairs(0,1),(0,2),.,(n-2,n-1). Return full shortest-path distances, using null for disconnected pairs. is_partial_cube is true exactly when this graph metric embeds isometrically into a binary hypercube: EVERY pair distance equals popcount(codes[u] XOR codes[v]). Disconnected graphs are known false in this connected finite-metric profile, not unknown. For a partial cube.

POST https://datenvertrag.halowerk.com/v1/partial-cube-cut-coordinate-embedding

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
nSiehe SchemaJa
edge_maskSiehe SchemaJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "n": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 5
        },
        {
          "type": "null"
        }
      ]
    },
    "edge_mask": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 1023
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "is_partial_cube": {
              "type": "boolean"
            },
            "dimension": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 4
                },
                {
                  "type": "null"
                }
              ]
            },
            "cuts": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 31
              },
              "minItems": 0,
              "maxItems": 4
            },
            "codes": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15
              },
              "minItems": 0,
              "maxItems": 5
            },
            "distances": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 4
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "minItems": 1,
                "maxItems": 5
              },
              "minItems": 1,
              "maxItems": 5
            }
          },
          "required": [
            "is_partial_cube",
            "dimension",
            "cuts",
            "codes",
            "distances"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "n",
    "edge_mask",
    "claim"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "n": 1,
  "edge_mask": 0,
  "claim": {
    "is_partial_cube": true,
    "dimension": 0,
    "cuts": [],
    "codes": [
      0
    ],
    "distances": [
      [
        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 →