Add support for community detection, based on eigenvectors of matrices

Add support for community detection, based the method described in http://arxiv.org/abs/physics/0605087, which uses the eigenvectors of a modularity matrix.