RandomGraph[n,p]
辺の確率が
で
頂点のラベル付きのランダムグラフを構築する.
RandomGraph
RandomGraph[n,p]
辺の確率が
で
頂点のラベル付きのランダムグラフを構築する.
詳細とオプション
- RandomGraphの機能はWolfram言語の組込み関数RandomGraphで利用できるようになった.
- RandomGraphを使うためには,まず Combinatorica パッケージをロードしなくてはならない.それにはNeeds["Combinatorica`"]を実行する必要がある.
- オプションTypeが提供されており,DirectedかUndirectedのどちらかの値を取ることができる.デフォルト値はUndirectedである.
- Type->Directedでは対応する有向のランダムグラフが生成される.
- RandomGraph[n,p,Directed],RandomGraph[n,p,range],RandomGraph[n,p,range,Directed]は今は使われない.ランダムな辺の重みを設定するときはSetEdgeWeightsを使う.
テクニカルノート
テキスト
Wolfram Research (2012), RandomGraph, Wolfram言語関数, https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html.
CMS
Wolfram Language. 2012. "RandomGraph." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html.
APA
Wolfram Language. (2012). RandomGraph. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html
BibTeX
@misc{reference.wolfram_2025_randomgraph, author="Wolfram Research", title="{RandomGraph}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html}", note=[Accessed: 01-May-2026]}
BibLaTeX
@online{reference.wolfram_2025_randomgraph, organization={Wolfram Research}, title={RandomGraph}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/RandomGraph.html}, note=[Accessed: 01-May-2026]}