| Input: X—data matrix k—parameter σ—Iterative stop threshold ε—Maximum Iteration |
| Output: S—connectivity matrix |
| Procedure: |
| Step 1 |
| Construct the connectivity matrix based on k-NN |
| Step 2 |
| For |
| Calculate S by solving Equation (7), and initial objective function value of Equation (7): |
| If |
| Break, and Return S |
| End If |
| End If |