add vertices and line connecting