Can we compute the graph Laplacian matrix for a directed graph?
조회 수: 15 (최근 30일)
이전 댓글 표시
How to find graph laplacian matrix of a directed graph?
댓글 수: 0
채택된 답변
Christine Tobler
2022년 3월 16일
It depends how you want to define it, there is no one consistent definition of what the graph laplacian of a directed graph is. This wikipedia page https://en.wikipedia.org/wiki/Laplacian_matrix#Definitions_for_simple_graphs lists some options.
추가 답변 (1개)
Bruno Luong
2022년 3월 16일
편집: Bruno Luong
2022년 3월 16일
In this thread I give formula for graph, for digraph you just need to be careful about indegree or outdegree
% TMW example
s = [1 2 2 3 3 3 4 5 5 5 8 8 9];
t = [2 3 4 1 4 5 5 3 6 7 9 10 10];
G = digraph(s,t);
A = G.adjacency;
% Use Laplacian
Din = diag(sum(A,1)); % in degree matrix
Dout = diag(sum(A,2)); % in degree matrix
Lin = Din - A % laplacian matrix
Lout = Dout - A % laplacian matrix
참고 항목
카테고리
Help Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!