Skip to main content
. 2021 Oct 29;21(21):7204. doi: 10.3390/s21217204
Algorithm 1: Proposed network clustering scheme
Input: All the network routers Rj, where j=1,2,,|R|.
Output: Set of “k” clusters (Ci), where i=1,2,,k.
  1. Sort the routers according to their decreasing order of degree centrality.

  2. Designate top “k” routers as initial centroids that have higher degree centrality (CentroidiCi).

  3. Iterate step-3(a), 3(b) and step-4, till there is a change in centroids:

    • (a)
      Determine the distance between the routers (Rj) and each of the centroid (Centroidi) using following equation:
      Dist(Centroidi,Rj)=H(Centroidi,Rj)Min(B(Centroidi,Rj)) (1)
    • (b)

      Assign each router (Rj) to the closest centroid (Centroidi), i.e., RjCi.

  4. Determine the new centroid (Centroidi) in each cluster that has minimum distance from the intra-cluster routers.