fixes for num edges and vertices