Coloring-based resource allocations in ad-hoc wireless networks