Wrote two methods which check the map by checking all the edges preservation (forwards and backwards).