{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0QQQQCPZA8"
    }
  ],
  "body": "\n## Statement\n\nLet $G$ be a finite [[graph|0JD5C82QMB]] with vertex set $V$ and [[edge set|0WNGQBPPQX]] $E$.\nThen\n$$\\sum_{v \\in V} \\deg(v) = 2\\, |E|.$$\n\n## Remarks\n\nProof: count the pairs $(v, e)$ with $v \\in e$. Each edge has two ends, and each vertex $v$ lies in $\\deg(v)$ edges. This is [[double counting|0F8YBHF2W3]].\nA direct consequence is that the [[number of odd-degree vertices is even|0QQQQCPZA8]].\nFor a $3$-regular graph on $n$ vertices, it gives $3n = 2 |E|$, so $n$ is even.\n\n## Explanations\n\n### L1 human\n\nAt a party, add up the number of hands each person shakes.\nEach handshake is counted twice, once for each of the two people, so the total is twice the number of handshakes.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "05C07"
    ],
    "name": "Handshaking lemma",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q954454",
      "wikipedia": "Handshaking lemma"
    },
    "sources": [
      {
        "locator": "Definitions and statement",
        "url": "https://en.wikipedia.org/wiki/Handshaking_lemma"
      }
    ],
    "tag": "0XAP8WHNES",
    "uses": [
      "0WNGQBPPQX",
      "0T0F6CCS9W"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0XAP8WHNES/",
  "links": [
    {
      "field": "uses",
      "target": "0WNGQBPPQX"
    },
    {
      "field": "uses",
      "target": "0T0F6CCS9W"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0XAP8WHNES.md",
  "msc": [
    "05C07"
  ],
  "name": "Handshaking lemma",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0XA/0XAP8WHNES.md",
  "status": null,
  "tag": "0XAP8WHNES",
  "uri": "m2://0XAP8WHNES",
  "url": "https://math2.tamnd.com/wiki/handshaking-lemma/",
  "writing": {
    "tag": "0XAP8WHNES",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
