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 N = 1 , , ε

Calculate S by solving Equation (7), and initial objective function value of Equation (7): f 0 f S

If | f N f N 1 | < σ

Break, and Return S

End If

End If