inference: implement assortative SBMs

2 jobs for master in 497 minutes and 4 seconds (queued for 6 seconds)
Status Name Job ID Coverage
  Test
passed job_clang_amd64 #4654
amd64

08:17:01

passed job_gcc_amd64 #4653
amd64

03:36:11