| Algorithm 1 Network Partition Algorithm | |
| Input | , Delay matrix, Security matrix, Load matrix, iteration g |
| Output | The number of controllers k |
| 1 | Computing and setting preference p |
| 2 | Initialize the responsibility matrix and the availability matrix |
| 3 | for g0≤ g or cluster center update do |
| 4 | Iteratively update responsibility and availability according to Equations (24) and (25) |
| 5 | g0 = g0 + 1 |
| 6 | end for |
| 7 | Calculate the number of cluster centers |
| 8 | return the number of cluster centers |