Skip to main content
. 2022 Mar 23;12(4):281. doi: 10.3390/metabo12040281
Algorithm 1 Correlation Clustering Algorithm
Require: V, E+, E
    H ← ∅
  while V ≠ ∅ do
   C ← ∅
   V’ ← ∅
   Pick a random pivot iV
   C ← {i}
   for jV and ji do
    if j, iE+ then
     Add j to C
    end if
    if j, iE then
     Add j to V’
    end if
   end for
   VV’
   Add C to H
  end while
  return H