Add in-degree computation functions