(A scheme grouping method based on the minimum spanning tree algorithm is proposed. Through the measurement and selection of edge weights in undirected fully connected graphs, the balance between energy consumption and task delay in the network is simply and effectively controlled, and then an efficient generalization is obtained. Function.)