graph vertex and edge