comparing edges properly and pseudo-code again.