vertex and edge list retrived from graph