community detect using random walks

try to recode the function Graph.community_walktrap() in igraph