Skip to main content
. 2020 Dec 31;21(1):218. doi: 10.3390/s21010218
Algorithm 2 NCS link embedding algorithm.
  • Input: physical WSN GS, VSNR GTV, node mapping results set NODE={njs,,nks}

  • Output: The link embedding results LINK={labs,,lmns}

  • Initialization: The link embedding results LINK=

  • forlvLV in VSNR do

  •       Choose lijv with the highest b(lijv)

  •        for lsLS do

  •           if b(lmns)<b(lijv) then

  •             LSLS/{lmns,lnms}

  •           end if

  •        end for

  •       K-shortest path algorithm for nis and njs

  •       Choose labs with the highest b(labs)

  •       Add labs to LINK

  • end for

  • return link embedding successfully