グラフ g の頂点分割を与える.
FindGraphPartition[g,k]
頂点を k 個のほぼ等しい大きさの部分に分割する.
FindGraphPartition[g,{n1,…,nk}]
頂点を大きさ n1, …, nkの部分に分割する.
FindGraphPartition[g,{α1,…,αk}]
頂点を,大きさの割合が α1, …, αkである部分に分割する.
FindGraphPartition[{vw,…},…]
規則 vw を使ってグラフ g を指定する.
FindGraphPartition
グラフ g の頂点分割を与える.
FindGraphPartition[g,k]
頂点を k 個のほぼ等しい大きさの部分に分割する.
FindGraphPartition[g,{n1,…,nk}]
頂点を大きさ n1, …, nkの部分に分割する.
FindGraphPartition[g,{α1,…,αk}]
頂点を,大きさの割合が α1, …, αkである部分に分割する.
FindGraphPartition[{vw,…},…]
規則 vw を使ってグラフ g を指定する.
詳細
- FindGraphPartitionは異なる部分に端点を持つ辺の数が最小になるような頂点の分割を求める.
- FindGraphPartition[g]はFindGraphPartition[g,2]と等価である.
- FindGraphPartitionはグラフを無向単純グラフとして扱う.
- 重みグラフの場合,FindGraphPartitionは異なる部分に端点を持つ辺の重みの総和が最小になるような分割を求める.
- FindGraphPartition[g,{α1,…,αk}]は各部分の大きさがその頂点の重みの和で与えられる分割を与える.
- 分割部分は最大のものを先頭にして大きさ順に並べられる.
例題
すべて開く すべて閉じる例 (1)
スコープ (10)
FindGraphPartitionは無向グラフに使うことができる:
FindGraphPartition[[image]]FindGraphPartition[[image]]FindGraphPartition[[image]]FindGraphPartition[[image]]FindGraphPartition[[image]]FindGraphPartition[[image], 3]FindGraphPartition[[image], {1, 2, 3}]FindGraphPartition[[image], {0.4, 0.6}]FindGraphPartition[{1 -> 2, 2 -> 3, 3 -> 1, 2 -> 4, 4 -> 5, 5 -> 6, 6 -> 4}]FindGraphPartitionは大きいグラフに使うことができる:
g = ExampleData[{"NetworkGraph", "Internet"}];FindGraphPartition[g]//Short//Timingアプリケーション (4)
mesh = AdjacencyGraph[Import["LinearAlgebraExamples/Data/can__229.psa"]]Short[FindGraphPartition[mesh, 4]]HighlightGraph[mesh, Subgraph[mesh, #]& /@ %]行列を対角外の要素数を最少にしたブロック対角形式に並べ替える:
m = (| | | | | | | | | | | | | | | | | | | | |
| - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 |
| 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |);ordering = Flatten[FindGraphPartition[AdjacencyGraph[m]]]Row[{MatrixPlot[m], MatrixPlot[m[[ordering, ordering]]]}, Spacer[50]]広告主とフレーズをノードとし,広告主から入札したフレーズへリンクを付けたスポンサー付きの検索グラフ:
g = [image];ひとまとまりのクエリフレーズにほとんどの資金を使っている二次市場と広告主の集団を求める:
FindGraphPartition[g, 3]グラフ分割を使ってソーシャルネットワーク中のコミュニティを求める:
club = ExampleData[{"NetworkGraph", "ZacharyKarateClub"}]FindGraphPartition[club, {0.38, 0.62}]HighlightGraph[club, Subgraph[club, #]& /@ %]特性と関係 (1)
FindGraphCommunitiesを使ってグラフ中のコミュニティを求める:
g = RandomGraph[WattsStrogatzGraphDistribution[20, 0.1, 3]];FindGraphCommunities[g]関連項目
関連するガイド
-
▪
- グラフの成分と連結性 ▪
- クラスタ解析
テキスト
Wolfram Research (2012), FindGraphPartition, Wolfram言語関数, https://reference.wolfram.com/language/ref/FindGraphPartition.html (2015年に更新).
CMS
Wolfram Language. 2012. "FindGraphPartition." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/FindGraphPartition.html.
APA
Wolfram Language. (2012). FindGraphPartition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindGraphPartition.html
BibTeX
@misc{reference.wolfram_2026_findgraphpartition, author="Wolfram Research", title="{FindGraphPartition}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FindGraphPartition.html}", note=[Accessed: 05-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_findgraphpartition, organization={Wolfram Research}, title={FindGraphPartition}, year={2015}, url={https://reference.wolfram.com/language/ref/FindGraphPartition.html}, note=[Accessed: 05-August-2026]}