Minimizing vertex count