Added methods to handle non-plain edges.