Efficient 2-Distance Coloring Method for Maximum and Average Sparse Graphs in Resource Allocation Optimization of Microgrids | Synapse