n 個の頂点と m 本の辺を持つグラフの一様グラフ分布を表す.
UniformGraphDistribution
n 個の頂点と m 本の辺を持つグラフの一様グラフ分布を表す.
詳細とオプション
- サンプル空間はすべて n 個の頂点と m 本の辺の単純グラフである.
- 使用可能なオプション
-
DirectedEdges False 有向辺を生成するかどうか - UniformGraphDistributionはRandomGraphやGraphPropertyDistribution等の関数で使うことができる.
例題
すべて開く すべて閉じる例 (2)
RandomGraph[UniformGraphDistribution[5, 6]]𝒟[n_, m_] := GraphPropertyDistribution[VertexDegree[g, v], gUniformGraphDistribution[n, m]]DiscretePlot[Evaluate @ Table[PDF[𝒟[40, m], x], {m, 10, 780, 152}], {x, 0, 40}, PlotRange -> All, ExtentSize -> 1 / 2]スコープ (4)
RandomGraph[UniformGraphDistribution[5, 6]]RandomGraph[UniformGraphDistribution[5, 6, DirectedEdges -> True]]RandomGraph[UniformGraphDistribution[5, 7], 4]𝒟 = GraphPropertyDistribution[VertexDegree[g, 1], gUniformGraphDistribution[5, 7]];Expectation[x ^ 2, x𝒟]オプション (2)
DirectedEdges (2)
RandomGraph[UniformGraphDistribution[10, 20]]UndirectedGraphQ[%]DirectedEdges->Trueを使って有向グラフを生成する:
RandomGraph[UniformGraphDistribution[10, 20, DirectedEdges -> True]]DirectedGraphQ[%]アプリケーション (2)
カラオケクラブのデュエットナイトで無作為に選ばれた40人の客が85曲を歌った.最低でも3曲歌った人数の期待値を求める:
𝒢 = UniformGraphDistribution[40, 85];f[g_] := Count[VertexDegree[g], d_ /; d ≥ 3]NExpectation[x, xGraphPropertyDistribution[f[g], g𝒢]]𝒟[n_, β_] := GraphPropertyDistribution[Length[First[ConnectedComponents[g]]] / n, gUniformGraphDistribution[n, ⌈β n / 2⌉]]Table[RandomVariate[𝒟[10, β]], {β, 0, 3}]100回実行して平均を取り,それを異なる頂点数でプロットする:
Table[Plot[Mean[RandomVariate[𝒟[n, β], 100]], {β, 0, 3}, MaxRecursion -> 2, PlotLabel -> n], {n, {10, 100}}]特性と関係 (4)
𝒟[n_, m_] = GraphPropertyDistribution[VertexCount[g], gUniformGraphDistribution[n, m]]𝒟[n_, m_] = GraphPropertyDistribution[EdgeCount[g], gUniformGraphDistribution[n, m]]𝒟[n_, m_] = GraphPropertyDistribution[VertexDegree[g, v], gUniformGraphDistribution[n, m]]DiscretePlot[Evaluate @ Table[PDF[𝒟[40, m], x], {m, 10, 780, 152}], {x, 0, 40}, PlotRange -> All, ExtentSize -> 1 / 2]Mean[𝒟[10, 30]] == 2 30 / 10RandomSampleを使ってUniformGraphDistributionのシミュレーションを行う:
uniform[n_, m_] :=
Graph[Range[n], RandomSample[EdgeList[CompleteGraph[n]], m]]uniform[7, 10]テキスト
Wolfram Research (2010), UniformGraphDistribution, Wolfram言語関数, https://reference.wolfram.com/language/ref/UniformGraphDistribution.html.
CMS
Wolfram Language. 2010. "UniformGraphDistribution." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/UniformGraphDistribution.html.
APA
Wolfram Language. (2010). UniformGraphDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UniformGraphDistribution.html
BibTeX
@misc{reference.wolfram_2026_uniformgraphdistribution, author="Wolfram Research", title="{UniformGraphDistribution}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/UniformGraphDistribution.html}", note=[Accessed: 29-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_uniformgraphdistribution, organization={Wolfram Research}, title={UniformGraphDistribution}, year={2010}, url={https://reference.wolfram.com/language/ref/UniformGraphDistribution.html}, note=[Accessed: 29-November-2026]}