Research Article
Ferry Node Identification Model for the Security of Mobile Ad Hoc Network
Algorithm 2
: Algorithm for calculating the k-core index.
| Input: node set G | | Output: K-core importance of all nodes in the set G | (1) | for : | (2) | | (3) | | (4) | while : | (5) | | (6) | for : // represents the set of the remaining nodes in the topology graph | (7) | if : () | (8) | | (9) | | (10) | | (11) | for : | (12) | | (13) | return |
|