find_rem_c_s.m 527 Bytes
Newer Older
Raghvendra Mall's avatar
Raghvendra Mall committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
function [rem_c_s_info,final_outputlabels] = find_rem_c_s(c_s_info,max_noc,outputlabels,N_nodes,best_level_hierarchy)

rem_c_s_info  = [];
final_outputlabels = zeros(N_nodes,1);
% Calculate clusters of size > 100 and put labels for clusters of size
% <= 100
for i=1:max_noc
    cid = c_s_info(i,1);
    no_nodes = c_s_info(i,2);
    if (no_nodes <=100)
        final_outputlabels(outputlabels(:,best_level_hierarchy)==cid) = cid;
    else
        rem_c_s_info = [rem_c_s_info; [cid no_nodes]];
    end
end
clear cid no_nodes;