Detecting Network Communities: An Application to Phylogenetic Analysis