Fix some bugs regarding computeInset().

- Add GraphUtil::normalizeLoop() to avoid the loop edge