Skip to main content
. 2022 Jul 7;22(14):5119. doi: 10.3390/s22145119
Algorithm 2: Validate Neighbours for BC Network
function:safeNodeBC
output:Validated Neighbours
procedure:
fori inn*,n*ϵN∀∗=1, …, n do
   adj.n∗[i].node={}← create empty sorted list of adjacency nodes
  forj inn*,n*ϵN∗=1, …, n and j ≠ ido
    t(i, j)p1← Calculatefirst point of time for communication
   ift(i, j)p==t(i, j)pmaxandTexii==Texjjdo
     P(i, j) A(t)=1
    adj.n∗[i].node ← j
      PσiC(t, N)=PσiC(t, N{j})
      Ti, jA=Ti1, j1A \ {{i,j}; ij}
    else
      P(i, j) A(t)=0
      PσiC(t, N)=PσiC(t, N)
     Ti, jA=Ti1, j1A
   return adj.n