FormationControlSimulation/SOURCE/networks-toolbox/algebraicConnectivity.m

13 lines
312 B
Matlab
Raw Permalink Normal View History

2019-06-17 14:31:50 +07:00
% The algebraic connectivity of a graph:
% the second smallest eigenvalue of the Laplacian
%
% INPUTs: adjacency matrix, nxn
% OUTPUTs: algebraic connectivity
%
% Other routines used: graphSpectrum.m
% GB: last updated, Oct 10 2012
function a=algebraicConnectivity(adj)
s=graphSpectrum(adj);
a=s(length(s)-1);