handled case with edges having no incident face
reset variable 'next' to null

necessary for hasNext() to work correctly