generate_iterative_clusters.m 520 Bytes
Newer Older
Raghvendra Mall's avatar
Raghvendra Mall committed
1 2 3 4 5 6 7 8 9 10 11 12
function iter = generate_iterative_clusters(rem_c_s_info,outputlabels,best_level_hierarchy,A,filename,iter,location)

length_left_cids = size(rem_c_s_info,1);
for i=1:length_left_cids
    indices = find(outputlabels(:,best_level_hierarchy)==rem_c_s_info(i,1));
    iter = iter + 1;
    [temp_net,~] = get_network_from_adjacency(A(indices,indices));
    run_louvain(temp_net,A(indices,indices),filename,iter,location);
    clear temp_net temp_Nrows indices;
end;
clear length_left_cids;
clear rem_c_s_info A outputlabels;