{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $G$ be a [[graph|0JD5C82QMB]] and let $u, v$ be vertices of $G$.\nSuppose that there is a [[walk|0VJZM0F9YM]] $W$ from $u$ to $v$.\nThen there is a [[path|0JDE56HWQ8]] from $u$ to $v$ whose vertices and edges are vertices and edges of $W$.\n\n## Remarks\n\nProof idea: if a walk visits a vertex $x$ twice, delete the closed part between the two visits. Each deletion makes the walk shorter, so the process stops with a path.\nA consequence: a shortest walk from $u$ to $v$ is a path. Thus the [[distance|0WPZ5YPAGR]] can be defined with paths.\n\n## Explanations\n\n### L1 human\n\nIf you can walk from $u$ to $v$, you can also do it without visiting any place twice.\nWhenever you come back to a place, cut out the loop that you just made.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "05C38"
    ],
    "name": "Every walk contains a path",
    "role": "proposition",
    "sources": [
      {
        "locator": "Walk, trail, and path",
        "url": "https://en.wikipedia.org/wiki/Path_(graph_theory)"
      }
    ],
    "tag": "09VZBHB33V",
    "uses": [
      "0VJZM0F9YM",
      "0JDE56HWQ8"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/09VZBHB33V/",
  "links": [
    {
      "field": "uses",
      "target": "0VJZM0F9YM"
    },
    {
      "field": "uses",
      "target": "0JDE56HWQ8"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/09VZBHB33V.md",
  "msc": [
    "05C38"
  ],
  "name": "Every walk contains a path",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/09V/09VZBHB33V.md",
  "status": null,
  "tag": "09VZBHB33V",
  "uri": "m2://09VZBHB33V",
  "url": "https://math2.tamnd.com/wiki/every-walk-contains-a-path/",
  "writing": {
    "tag": "09VZBHB33V",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
