Implementing edge mapping (continued)