Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
% function [synch,l2,lmax,spec] = eigenlap(node)
% Calculates the eigenvalues 2 and N
% synch = ratio l2/lmax gives measure of synchronizabity
% spec is the full spectrum
function [synch,l2,lmax,spec] = eigenlap(node)
[A,degree,Lap] = adjacency(node);
[dum,N] = size(Lap);
l = eig(Lap);
spec = l;
flag = 0; ind = 1;
while flag == 0
ind = ind + 1;
l2tmp = min(l(ind:N));
if l2tmp > 1/sqrt(N)
l2 = l2tmp;
flag = 1;
end
end
lmax = l(N);
synch = lmax/l2;