adding lines between vertices