Estimate an appropriate number of clusters for hypergraph spectral clustering using the eigengap heuristic.
Value
A list containing:
- suggested_K
Recommended number of clusters.
- eigenvalues
Evaluated eigenvalues.
- eigengaps
Consecutive eigenvalue differences.
- eigenvalues_all
Full eigenvalue spectrum.
Details
The method computes Laplacian eigenvalues and identifies the largest gap between consecutive eigenvalues.
A large eigengap indicates a natural partition of the hypergraph into communities.
Let \(\lambda_1 \le \lambda_2 \le \cdots\) denote Laplacian eigenvalues.
The eigengap for cluster number \(k\) is:
$$ gap_k = \lambda_{k+1} - \lambda_k $$
The suggested number of clusters corresponds to the largest observed eigengap.