Code (written by Duy Vu) for Vu DQ, Hunter DR, Schweinberger M (2012), Model-Based Clustering of Large Networks: