Implement spectral_cluster(W, k): W is an (n, n) symmetric non-negative affinity matrix (zero diagonal, positive row sums), 1 <= k <= n. Return n integer labels as a list.
U (n, k): eigenvectors of for the k smallest eigenvalues (numpy.linalg.eigh), as columns.T: U with each row scaled to unit norm (all-zero rows stay zero).T's rows:
centers[0] = T[0]; each next center is the row farthest from its nearest chosen center (ties: smallest index).