Home   >   User Resources   >   Online Help   >   apaClustering.Spectral.BiPartition
 

 

Function index Version 3.0.0

apaClustering.Spectral.BiPartition(LaplacianMatrix)

Excel=apaClustering.Spectral.BiPartition(LaplacianMatrix)

Result

Bi-partitioning by the sign of the entries of the Fiedler vector, i.e. the eigenvector of the second smallest eigenvalue of a Laplacian matrix. Returns an n x 1 vector of labels: 0 for positive entries, 1 for zero or negative entries.

Syntax

LaplacianMatrix: n x n Laplacian matrix: L (apaGraph.LaplacianMatrix), L_sym (apaGraph.LaplacianMatrix.Sym) or L_rw (apaGraph.LaplacianMatrix.RW)

Remarks

Symmetric matrices (L, L_sym) are decomposed directly, by Householder tridiagonalization followed by the implicit QL algorithm. The random-walk Laplacian L_rw = D^-1 L is not symmetric; its eigenvectors are computed from the similar symmetric matrix D^1/2 L_rw D^-1/2 and transformed back with D^-1/2. The node weights D are recovered from L_rw itself. A non‑symmetric matrix that is not of the form D^-1 W with a symmetric W returns an error. Eigenvectors are scaled to unit length; their sign is arbitrary.

Since the sign of the Fiedler vector is arbitrary, which group receives label 0 is arbitrary as well.

Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."