Skip to content
HALOWERK

Datenvertragswerk

graph endomorphism monoid ledger

From one simple undirected graph on labelled vertices 0..n-1 (n 0..4), reconstructs its entire endomorphism monoid. An endomorphism is any total self-map f such that every edge uv maps to an edge f(u)f(v); non-edges need not be preserved. Returns all maps in numeric lexicographic order, the full square composition table with composition[a][b] = index of maps[a] after maps[b], plus identity_index and count.

POST https://datenvertrag.halowerk.com/v1/graph-endomorphism-monoid-ledger

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
nSee schemaYes
edge_maskSee schemaYes
claimSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "n": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 4
        },
        {
          "type": "null"
        }
      ]
    },
    "edge_mask": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 63
        },
        {
          "type": "null"
        }
      ]
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "maps": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 3
                },
                "minItems": 0,
                "maxItems": 4
              },
              "minItems": 0,
              "maxItems": 32
            },
            "composition": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 31
                },
                "minItems": 0,
                "maxItems": 32
              },
              "minItems": 0,
              "maxItems": 32
            },
            "identity_index": {
              "type": "integer",
              "minimum": 0,
              "maximum": 31
            },
            "count": {
              "type": "integer",
              "minimum": 0,
              "maximum": 32
            }
          },
          "required": [
            "maps",
            "composition",
            "identity_index",
            "count"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "n",
    "edge_mask",
    "claim"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "n": 0,
  "edge_mask": 0,
  "claim": {
    "maps": [
      []
    ],
    "composition": [
      [
        0
      ]
    ],
    "identity_index": 0,
    "count": 1
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’