Sufficient conditions for lambda'-optimality in graphs with girth g