Added Degenerate Edge Checks and Assertions.