| Input: A queue which contains RNN results. |
| Output: A set of selected collaborative nodes. |
| 1: for each () do |
| 2: Find out strong rules ; |
| 3: Calculate sufficient confidence with (14) and (16); |
| 4: if (sufficient confidence of ) then |
| 5: if () then |
| 6: Choose from and adjacency list with (6); |
| Construct neighbourhood relationship for ; |
| Insert at the end of ; |
| 7: else if () then |
| 8: Choose from and adjacency list with (7); |
| Construct neighbourhood relationship for ; |
| Insert at the end of ; |
| 9: end if |
| 10: end if |
| 11: end for |