This is an implementation of MTV-g model and MTV-s model in the paper of "Dynamic Infinite Mixed-Membership Stochastic Blockmodel".