Research Article

Hybrid Self-Adaptive Algorithm for Community Detection in Complex Networks

Algorithm 2

Algorithm of population initialization.
Input: Population with each node divided into different communities, that is, ,
Output: Population after initialization
For   : popsize     //for all individuals in population
For   : 5     //the number of propagation iterations is set to 5
  For   :     //for all nodes in the network
  If  ()
     For all node in
       Equation (4)
     End For
  Else        //node has only one neighbor
           //assign the label of neighbor to
  End If
  End For
End For
End For