generate graph vertices and print coordinates