Implementin last part of algorithm --> DualGraph and Graphtraversal