グラフ g 中のペアの頂点間の最大距離を与える.
GraphDiameter[{vw,…}]
規則 vw を使ってグラフ g を指定する.
GraphDiameter
グラフ g 中のペアの頂点間の最大距離を与える.
GraphDiameter[{vw,…}]
規則 vw を使ってグラフ g を指定する.
詳細とオプション
- 使用可能なオプション
-
EdgeWeight Automatic 各辺の重み Method Automatic 使用するメソッド - デフォルト設定のEdgeWeight->Automaticでは,ある辺の重みは,グラフ g のEdgeWeightが存在する場合はそれ,存在しない場合は1であるとみなされる.
- Methodの可能な設定値には,"Dijkstra","FloydWarshall","Johnson","PseudoDiameter"がある.
- GraphDiameterは,無向グラフ,有向グラフ,重み付きグラフ,多重グラフ,混合グラフに使うことができる.
例題
すべて開く すべて閉じるスコープ (7)
GraphDiameterは無向グラフに使うことができる:
GraphDiameterは大きいグラフに使うことができる:
アプリケーション (2)
CompleteGraphの場合,直径は1である:
サイズ
のPathGraphの直径は
である:
サイズ
のCycleGraphの直径は
である:
サイズ5以上のWheelGraphの直径は2である:
サイズ4のWheelGraphは完全グラフなので,直径は1である:
サイズ{m,n}のGridGraphの直径は
である:
深さ
のCompleteKaryTreeの直径は
である:
特性と関係 (3)
連結グラフのグラフ直径はVertexEccentricityで計算できる:
関連項目
VertexEccentricity GraphRadius GraphPeriphery GraphCenter GraphDistanceMatrix
Function Repository: GraphAntipodes
テキスト
Wolfram Research (2010), GraphDiameter, Wolfram言語関数, https://reference.wolfram.com/language/ref/GraphDiameter.html (2015年に更新).
CMS
Wolfram Language. 2010. "GraphDiameter." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/GraphDiameter.html.
APA
Wolfram Language. (2010). GraphDiameter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphDiameter.html
BibTeX
@misc{reference.wolfram_2025_graphdiameter, author="Wolfram Research", title="{GraphDiameter}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/GraphDiameter.html}", note=[Accessed: 05-October-2025]}
BibLaTeX
@online{reference.wolfram_2025_graphdiameter, organization={Wolfram Research}, title={GraphDiameter}, year={2015}, url={https://reference.wolfram.com/language/ref/GraphDiameter.html}, note=[Accessed: 05-October-2025]}