Adding source vertex in generate program