Please refer to Community Detection by Motif-aware Label Propagation which has been accepted for publication in the ACM Transactions on Knowledge Discovery from Data
Usage: run the Main.m function (substitute the dataset with your preferred one)
% Main.m: the main function for MWLP
% MWLP_new.m: the implementation of MWLP
% MotifAdjacency.m: forms the motif adjacency matrix