Can we compute the graph Laplacian matrix for a directed graph?
Ältere Kommentare anzeigen
How to find graph laplacian matrix of a directed graph?
Akzeptierte Antwort
Weitere Antworten (1)
Bruno Luong
am 16 Mär. 2022
Bearbeitet: Bruno Luong
am 16 Mär. 2022
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
1 Kommentar
Souarv De
am 16 Mär. 2022
Kategorien
Mehr zu Networks finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!