as.dendrogram function for walktrap communities initial commit