int nNodes
int nClusters
int[] clusters
int nNodes
double[][] coordinates
int nNodes
long nEdges
Each edge is counted twice, once in each direction.
double[] nodeWeights
long[] firstNeighborIndices
The neighbors of node i
are given by neighbors[firstNeighborIndices[i]], ...,
neighbors[firstNeighborIndices[i + 1] - 1]
.
LargeIntArray neighbors
LargeDoubleArray edgeWeights
double totalEdgeWeightSelfLinks