| Algorithm 3: Constructing RNG |
| Input: Full list of the neighbors, |
| Output: of the node |
| 1) for each |
| 2) for each |
| 3) if |
| 4) continue |
| 5) else if |
| 6) eliminate edge |
| 7) break |
| 8) end if |
| 9) end for |
| 10) end for |
| Algorithm 3: Constructing RNG |
| Input: Full list of the neighbors, |
| Output: of the node |
| 1) for each |
| 2) for each |
| 3) if |
| 4) continue |
| 5) else if |
| 6) eliminate edge |
| 7) break |
| 8) end if |
| 9) end for |
| 10) end for |