{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "04XPQT2XTC"
    },
    {
      "field": "uses",
      "target": "0Z367CGNRM"
    }
  ],
  "body": "\n## Definition\n\nLet $G$ be a [[graph|0JD5C82QMB]].\nA spanning tree of $G$ is a [[subgraph|0P11X5HKAX]] $T$ of $G$ that contains every vertex of $G$ and is a [[tree|0MJ0JS72DZ]].\n\n## Remarks\n\nA graph has a spanning tree if and only if it is connected. The node [[every connected graph has a spanning tree|04XPQT2XTC]] gives one direction.\nA spanning tree of a finite connected graph with $n$ vertices has $n - 1$ edges.\nThe complete graph $K_n$ has $n^{n-2}$ spanning trees, by [[Cayley's formula|0M2SSGSYPE]]. A [[minimum spanning tree|0Z367CGNRM]] has the least total weight.\n\n## Explanations\n\n### L1 human\n\nA spanning tree keeps all the vertices of a graph and just enough edges to stay connected without any loop.\nFor a road network, it is a smallest set of roads that still links all towns.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0S4ZEZM7KE",
    "kind": "definition",
    "msc": [
      "05C05"
    ],
    "name": "Spanning tree",
    "sources": [
      {
        "locator": "Definitions",
        "url": "https://en.wikipedia.org/wiki/Spanning_tree"
      }
    ],
    "tag": "0FQ5B8S1ZC",
    "uses": [
      "0P11X5HKAX",
      "0MJ0JS72DZ"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0FQ5B8S1ZC/",
  "links": [
    {
      "field": "defines",
      "target": "0S4ZEZM7KE"
    },
    {
      "field": "uses",
      "target": "0P11X5HKAX"
    },
    {
      "field": "uses",
      "target": "0MJ0JS72DZ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0FQ5B8S1ZC.md",
  "msc": [
    "05C05"
  ],
  "name": "Spanning tree",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0FQ/0FQ5B8S1ZC.md",
  "status": null,
  "tag": "0FQ5B8S1ZC",
  "uri": "m2://0FQ5B8S1ZC",
  "url": "https://math2.tamnd.com/wiki/spanning-tree-definition/",
  "writing": {
    "tag": "0FQ5B8S1ZC",
    "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
      }
    ]
  }
}
