Skupiny vrcholov

Úloha na dopracovanie.