fix graph utils