created a single function to populate topology vertices