Implemented a change to make sure that the proper edge weights were used to estimate cost between ops.