Regularity functions and strongly Koszul graphs