Add edges method