I would like to obtain the matrix of edge counts between groups in a partition arising from a RankedBlockState. However, the existing get_matrix() method doesn’t work on the RankedBlockState object. Is there a straightforward way to do this?
MWE:
g = gt.collection.ns["faculty_hiring/computer_science"].copy()
state = gt.RankedBlockState(g)
for i in range(100):
state.multiflip_mcmc_sweep(beta=np.inf, niter=10)
state.get_matrix()