FormationControlSimulation/SOURCE/networks-toolbox/signlessLaplacian.m

11 lines
281 B
Matlab
Raw Normal View History

2019-06-17 14:31:50 +07:00
% The signless Laplacian matrix of a graph
% Def: the sum of the diagonal degree matrix and the adjacency matrix
%
% INPUTS: adjacency matrix, nxn
% OUTPUTs: signless Laplacian matrix, nxn
%
% GB: last updated, Dec 6 2015
function L=signlessLaplacian(adj)
L=diag(sum(adj))+adj;