as per https://graph-tool.skewed.de/static/doc/demos/inference/inference.html, "for reasons of algorithmic efficiency, the group labels returned are not necessarily contiguous, and they may lie in any subset of the range [0,N-1], where N is the number of nodes in the network.