| Algorithm 1. Edge-Aided Attribute-Based Cluster Algorithm |
| Input: input , , , |
|
Output: 1: Calculate all 2: for to do 3: if 4: become cluster head for 5: updates the set of clusters 6: end for 7: Calculate all ,, 8: for , do 9: if min 10: joins the cluster 11: end if 12: end for 13: for , to , do 14: if min 15: joins the cluster 16: if min 17. joins the cluster 18: end if 19: end for 20: Return all cluster |