Cluster Analysis And Network Community Detection With Application To Neuroscience