{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $T$ be a [[tree|0MJ0JS72DZ]].\nThen $T$ is [[bipartite|07DVHJ8N0A]].\n\n## Remarks\n\nProof: fix a vertex $r$. Put a vertex in $A$ if its [[distance|0WPZ5YPAGR]] to $r$ is even, and in $B$ if it is odd. The ends of an edge have distances that differ by $1$.\nIt also follows from the theorem that [[a graph is bipartite iff it has no odd cycle|01R1HPEK6S]], because a tree has no cycle at all.\n\n## Explanations\n\n### L1 human\n\nColour the vertices of a tree by levels, from a chosen root: even levels white, odd levels black.\nEach edge goes between neighbouring levels, so it joins a white vertex and a black vertex.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "05C05"
    ],
    "name": "Trees are bipartite",
    "role": "proposition",
    "sources": [
      {
        "locator": "Examples",
        "url": "https://en.wikipedia.org/wiki/Bipartite_graph"
      }
    ],
    "tag": "0BN2A6EBYA",
    "uses": [
      "0MJ0JS72DZ",
      "07DVHJ8N0A"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0BN2A6EBYA/",
  "links": [
    {
      "field": "uses",
      "target": "0MJ0JS72DZ"
    },
    {
      "field": "uses",
      "target": "07DVHJ8N0A"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0BN2A6EBYA.md",
  "msc": [
    "05C05"
  ],
  "name": "Trees are bipartite",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0BN/0BN2A6EBYA.md",
  "status": null,
  "tag": "0BN2A6EBYA",
  "uri": "m2://0BN2A6EBYA",
  "url": "https://math2.tamnd.com/wiki/trees-are-bipartite/",
  "writing": {
    "tag": "0BN2A6EBYA",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
