check_attributes function

Check for vertex or edge attributes