The graphs satisfying conditions of Ore's type