What would be the purpose of this function if didn’t, in general, change the state?
From the documentation:
This function calls state.mcmc_sweep (or state.gibbs_sweep) at each
iteration (e.g. graph_tool.inference.BlockState.mcmc_sweep and graph_tool.inference.BlockState.gibbs_sweep), and keeps track of
the value of state.entropy(**args) with args corresponding to mcmc_args["entropy_args"].