Handle edges attribute