Corrected off by one error. Streamlined the AbstractEdge class.