EPM Matlab code for M. Zhou, "Infinite Edge Partition Models for Overlapping Community Detection and Link Prediction," Artificial Intelligence and Statistics (AISTATS), San Diego, CA, May 2015.