Task 2 from the course "Graph Theory" ministered in UFSCar (Universidade Federal de São Carlos) in 2014, second semester.