{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. The [[complete graph|03WKB2H474]] $K_n$ has vertex set $V = \\set{1, \\dots, n}$, and any two distinct vertices are adjacent.\n2. Each edge of a [[graph|0JD5C82QMB]] is a $2$-element subset of $V$. By step 1, every $2$-element subset $\\set{u, v}$ of $V$ is an edge of $K_n$.\n3. So the edges of $K_n$ are exactly the $2$-element subsets of $V$. By the [[number of k-element subsets|0BFMR2FQ8B]], there are $\\binom{n}{2}$ of them.\n4. If $n \\ge 2$, the [[factorial formula|033KTKKRV6]] gives $\\binom{n}{2} = \\frac{n!}{2!\\,(n-2)!} = \\frac{n(n-1)}{2}$.\n5. Let $n \\in \\set{0, 1}$. The recursion that defines the [[binomial coefficient|092GEF38YD]] gives $\\binom{0}{1} = \\binom{0}{2} = 0$. Hence $\\binom{1}{2} = \\binom{0}{1} + \\binom{0}{2} = 0$.\n6. For $n \\in \\set{0, 1}$ also $\\frac{n(n-1)}{2} = 0$. So in all cases $K_n$ has $\\binom{n}{2} = \\frac{n(n-1)}{2}$ edges.\n\n## Idea\n\nIn $K_n$ every pair of distinct vertices is an edge, so counting edges is counting pairs. Choosing an ordered pair gives $n(n-1)$ options, and each unordered pair is counted twice.\n",
  "commit": "68a8c3dc73fd55004b2796431c607c30960d1a85",
  "front": {
    "kind": "proof",
    "msc": [
      "05C30"
    ],
    "name": "Proof of the number of edges of a complete graph",
    "proves": "05RN90E14Y",
    "sources": [
      {
        "locator": "Properties",
        "url": "https://en.wikipedia.org/wiki/Complete_graph"
      }
    ],
    "tag": "18Z4GBYZDH",
    "uses": [
      "03WKB2H474",
      "0JD5C82QMB",
      "0BFMR2FQ8B",
      "092GEF38YD",
      "033KTKKRV6"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/18Z4GBYZDH/",
  "links": [
    {
      "field": "proves",
      "target": "05RN90E14Y"
    },
    {
      "field": "uses",
      "target": "03WKB2H474"
    },
    {
      "field": "uses",
      "target": "0JD5C82QMB"
    },
    {
      "field": "uses",
      "target": "0BFMR2FQ8B"
    },
    {
      "field": "uses",
      "target": "092GEF38YD"
    },
    {
      "field": "uses",
      "target": "033KTKKRV6"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/18Z4GBYZDH.md",
  "msc": [
    "05C30"
  ],
  "name": "Proof of the number of edges of a complete graph",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/18Z/18Z4GBYZDH.md",
  "status": null,
  "tag": "18Z4GBYZDH",
  "uri": "m2://18Z4GBYZDH",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-number-of-edges-of-a-complete-graph/",
  "writing": {
    "tag": "18Z4GBYZDH",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
