Color optimization in activity graph and frequent path.