Krausz dimension and its generalizations in special graph classes