Is it necessary to reorder the adjacency matrix like in the third line of the function bLP (i.e., x <- x[sample(c(1:NROW(x))),sample(c(1:NCOL(x)))]) or at all?
I already get classic cannot allocate vector of size errors at that stage with large-ish datasets.