{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $G$ and $H$ be [[graphs|0JD5C82QMB]] with vertex sets $V(G)$ and $V(H)$.\nA graph homomorphism from $G$ to $H$ is a map $f : V(G) \\to V(H)$ such that $f(u) \\sim f(v)$ in $H$ whenever $u \\sim v$ in $G$.\n\n## Remarks\n\nA homomorphism maps edges to edges. It may map non-adjacent vertices to adjacent ones, and it may map several vertices to one vertex.\nA homomorphism from $G$ to the complete graph $K_k$ is the same as a proper [[colouring|0874138YP6]] of $G$ with $k$ colours.\nA bijective homomorphism whose inverse is also a homomorphism is a [[graph isomorphism|00CT0PTH74]].\n\n## Explanations\n\n### L1 human\n\nA graph homomorphism is a map of vertices that sends each edge to an edge.\nFor example, mapping the vertices of a square alternately to the two ends of one edge is a homomorphism from $C_4$ to $K_2$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "052JJ9YVNM",
    "kind": "definition",
    "msc": [
      "05C60"
    ],
    "name": "Graph homomorphism",
    "sources": [
      {
        "locator": "Definitions",
        "url": "https://en.wikipedia.org/wiki/Graph_homomorphism"
      }
    ],
    "tag": "06SCB3R6BN",
    "uses": [
      "0JD5C82QMB"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/06SCB3R6BN/",
  "links": [
    {
      "field": "defines",
      "target": "052JJ9YVNM"
    },
    {
      "field": "uses",
      "target": "0JD5C82QMB"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/06SCB3R6BN.md",
  "msc": [
    "05C60"
  ],
  "name": "Graph homomorphism",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/06S/06SCB3R6BN.md",
  "status": null,
  "tag": "06SCB3R6BN",
  "uri": "m2://06SCB3R6BN",
  "url": "https://math2.tamnd.com/wiki/graph-homomorphism-definition/",
  "writing": {
    "tag": "06SCB3R6BN",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
