fixed offset problem in graphs