Research Article

Energy Efficient Wireless Sensor Network Modelling Based on Complex Networks

Algorithm 1

Function of extract_clabel(T, K).
function clust_point = extract_clabel(T, K)
% T: Number of the cluster, category that each individual belongs to
% K: Category numbers of the cluster
% clust_point: Divide data points of cluster, data points which have common points ascribed as one
nT = length(T);
num = 1;
for i = 1 : K
num = 1;
for j = 1 : nT
  if T(j) == i
   clust_point(i, num) = j;
   num = num + 1;
  end
end
end