Distributed Functional Compression through Graph Coloring