{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $n \\ge 1$, let $V = \\set{1, \\dots, n}$, and let $\\mathcal{G}_n$ be the finite set of all simple [[graphs|0JD5C82QMB]] with vertex set $V$.\nA random graph on $V$ is a [[probability measure|0VGMEBVW1M]] $\\mathbb{P}$ on $\\mathcal{G}_n$.\nThat is, it is a map $\\mathbb{P} \\colon \\mathcal{G}_n \\to [0, 1]$ with $\\sum_{G \\in \\mathcal{G}_n} \\mathbb{P}(G) = 1$.\nEquivalently, it is the law of a random variable on a [[probability space|0ZYBZ34RT2]] with values in $\\mathcal{G}_n$.\nA model of random graphs is a choice of such a measure $\\mathbb{P}_n$ for every $n$.\nFor $0 \\le p \\le 1$, the binomial model $G(n, p)$ is the measure with $\\mathbb{P}(G) = p^{m} (1 - p)^{\\binom{n}{2} - m}$, where $m$ is the number of edges of $G$.\n\n## Remarks\n\nIn $G(n, p)$ the $\\binom{n}{2}$ possible edges are present independently, each with probability $p$; the probabilities add up to $(p + (1 - p))^{\\binom{n}{2}} = 1$ by the binomial theorem.\nExample: $G(n, 1/2)$ gives each of the $2^{\\binom{n}{2}}$ graphs in $\\mathcal{G}_n$ the same probability, so it is the uniform random graph on $V$.\nNon-example: giving each of the $8$ graphs on $\\set{1, 2, 3}$ the weight $1/2$ is not a random graph, because the weights add up to $4$, not $1$.\nA property holds asymptotically almost surely in a model if its probability tends to $1$ as $n \\to \\infty$.\nAnother standard model is $G(n, M)$, the uniform measure on the graphs in $\\mathcal{G}_n$ with exactly $M$ edges.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "TNT3DG0HRJ",
    "kind": "definition",
    "msc": [
      "05C80",
      "60C05"
    ],
    "name": "Random graph",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Random_graph"
      }
    ],
    "tag": "THYBFG527A",
    "uses": [
      "0JD5C82QMB",
      "0ZYBZ34RT2",
      "0VGMEBVW1M"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/THYBFG527A/",
  "links": [
    {
      "field": "defines",
      "target": "TNT3DG0HRJ"
    },
    {
      "field": "uses",
      "target": "0JD5C82QMB"
    },
    {
      "field": "uses",
      "target": "0ZYBZ34RT2"
    },
    {
      "field": "uses",
      "target": "0VGMEBVW1M"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/THYBFG527A.md",
  "msc": [
    "05C80",
    "60C05"
  ],
  "name": "Random graph",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/THY/THYBFG527A.md",
  "status": null,
  "tag": "THYBFG527A",
  "uri": "m2://THYBFG527A",
  "url": "https://math2.tamnd.com/wiki/random-graph-definition/",
  "writing": {
    "tag": "THYBFG527A",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
