Research Article

Energy Efficient Wireless Sensor Network Modelling Based on Complex Networks

Algorithm 3

Function of .
function struc_data = up_stuct_property(data)
% Utilized for updating the dead sink nodes
% Work out value for individuals, adjacency matrix, distance matrix, give back the structure struc_data
% clust_point: cluster individuals of per line
% num_categ: numbers of cluster
% A: initial data adjacency matrix
% D: initial data distance matrix
% data: structure of different categories
% cluster center
sum_D = sum((data.D));
[sum_sort_D, flag] = sort(sum_D); % distance arranged from small to lrge, the second small one as the center = data.point(flag(2)); % choose the second small one as the sink node center
struc_data = data