Skip to main content
. 2015 May 26;15(6):12273–12298. doi: 10.3390/s150612273
Algorithm 3: Constructing RNG
Input: Full list of the neighbors, L
Output: RNsL of the node
1) for each viϵL
2)  for each vjϵL
3)   if vi==vj
4)    continue
5)   else if d(vi, vj)>max[d(vi, vk),d(vj, vk)]
6)    eliminate edge (vi, vj)
7)    break
8)   end if
9)  end for
10) end for