Added logic to adding edges

adding edges still not working