standard community detection based on flow matrix