Text this: Graph coloring framework to mitigate cascading failure in complex networks