added graph length options