This is the code for the fifth task from Graph Theory course on UFSCar (Universidade Federal de São Carlos), on the second semester of 2014, taught by Professor Doctor Alexandre Levada.