Added special updates for complex triangle counting.