Check vertex and edge set sizes