> This takes more 30 minutes on my laptop. I give up

Alex, I think that you are going to have to rely on the (horrible) trick
used by Cameron: threshold the correlations to have connections and thus
speed up the algorithm.