Delete unused imports
Change Stack class calls with a Deque structure
Add catch new exceptions from graph
remove equals and replace with direct comparison in getEdge() method
remove aditional call in addEdge() method
Change DequeList for LinkedList