add edges when passing over aps