laplacian
グラフのラプラシアン行列
説明
例
グラフのラプラシアン行列
エッジ リストを使用してグラフを作成し、グラフのラプラシアン行列を計算します。
s = [1 1 1 1 1]; t = [2 3 4 5 6]; G = graph(s,t); L = laplacian(G)
L = (1,1) 5 (2,1) -1 (3,1) -1 (4,1) -1 (5,1) -1 (6,1) -1 (1,2) -1 (2,2) 1 (1,3) -1 (3,3) 1 (1,4) -1 (4,4) 1 (1,5) -1 (5,5) 1 (1,6) -1 (6,6) 1
L
の対角要素はノードの次数を示し、L(j,j)
がノード j
の次数になります。
グラフの接続行列 I
を計算し、関係 L = I*I'
を確認します。
I = incidence(G); L - I*I'
ans = All zero sparse: 6x6
入力引数
出力引数
L
— ラプラシアン行列
行列
ラプラシアン行列 L
は、サイズが numnodes(G)
行 numnodes(G)
列の正方対称スパース行列です。自己ループをもつグラフでは、グラフのラプラシアン行列は未定義です。
バージョン履歴
R2015b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)