CommunityStructurePartition[g]
グラフ g のコミュニティへの分割を返す.
CommunityStructurePartition
CommunityStructurePartition[g]
グラフ g のコミュニティへの分割を返す.
詳細とオプション
- CommunityStructurePartitionの機能はWolfram言語の組込み関数FindGraphCommunities.で利用できるようになった.
- CommunityStructurePartitionを使うためには,まずグラフユーティリティパッケージをロードしなくてはならない.それにはNeeds["GraphUtilities`"]を実行する必要がある.
- この分割では,密度の高い辺がコミュニティ間ではなく,コミュニティ内に存在するよう,頂点をコミュニティにグループ分けする.
- 次のオプションを使うことができる:
-
Weighted False マッチングの際に,重みの大きい辺を優先するかどうか
例題
すべて開く すべて閉じる例 (2)
Needs["GraphUtilities`"]g = {3 -> 2, 2 -> 1, 1 -> 3, 3 -> 5, 5 -> 6, 6 -> 7, 7 -> 5};
GraphPlot[g, VertexLabeling -> True]ネットワークが2つのコミュニティにグループ分けされることが分かる:
CommunityStructurePartition[g]CommunityStructurePartitionの代わりにFindGraphCommunitiesが使われるようになった:
g = Graph[{3 -> 2, 2 -> 1, 1 -> 3, 3 -> 5, 5 -> 6, 6 -> 7, 7 -> 5}]FindGraphCommunities[g]オプション (1)
Weighted (1)
Needs["GraphUtilities`"]g = SparseArray[{{1, 2} -> 10, {2, 1} -> 10, {2, 3} -> 1, {3, 2} -> 1, {3, 1} -> 1, {1, 3} -> 1, {3, 5} -> 10, {5, 3} -> 10, {5, 6} -> 1, {6, 5} -> 1, {6, 4} -> 10, {4, 6} -> 10, {5, 4} -> 1, {4, 5} -> 1}, {6, 6}]GraphPlot[g, VertexLabeling -> True, EdgeRenderingFunction -> ({Line[#1], Text[g[[First[#4], Last[#4]]], LineScaledCoordinate[#1], Background -> White]}&)]cs = CommunityStructurePartition[g]cs = CommunityStructurePartition[g, Weighted -> True]テクニカルノート
関連するガイド
-
▪
- グラフユーティリティパッケージ ▪
- グラフとネットワーク ▪
- グラフの可視化 ▪
- グラフ上の計算 ▪
- グラフの構築と表現 ▪
- グラフと行列 ▪
- グラフの特性と測定 ▪
- グラフの操作と変更 ▪
- ランダムグラフ ▪
- ソーシャルネットワーク分析 ▪
- グラフの特性 ▪
- 数学データ形式 ▪
- 離散数学
テキスト
Wolfram Research (2007), CommunityStructurePartition, Wolfram言語関数, https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html.
CMS
Wolfram Language. 2007. "CommunityStructurePartition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html.
APA
Wolfram Language. (2007). CommunityStructurePartition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html
BibTeX
@misc{reference.wolfram_2026_communitystructurepartition, author="Wolfram Research", title="{CommunityStructurePartition}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html}", note=[Accessed: 19-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_communitystructurepartition, organization={Wolfram Research}, title={CommunityStructurePartition}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html}, note=[Accessed: 19-August-2026]}