recalculate graphs arrangement