Research Article

Borel Cayley Graph-Based Topology Control for Consensus Protocol in Wireless Sensor Networks

Algorithm 2

CR assignment.
 (1) procedure CR ASSIGNMENT
 (2)                       : starting node
 (3)   
 (4)   while     do          Until all nodes are assigned
 (5)    select unassigned node closest to
 (6)   
 (7)   
 (8)   end while
 (9)   Convert all IDs from CR to GCR          Using (10)
 (10) Establish the remained edges using GCR constants
 (11) end procedure