Programatically determining blocks on visualization with hSBM

Hi,

I've been using graph-tool extensively over the past 6 months with
hSBM_topic modeling (https://github.com/martingerlach/hSBM_Topicmodel; from
the Gerlach, Peixoto & Altmann, 2018 paper). I have one small question that
may dramatically improve the usability of this.
The output showing the hierarchical community structure in the word-document
network (chord diagram) is beautiful. However, is there any way to
programmatically identify the blocks (blue squares), so that I can map these
onto the word groups (topics) produced by the hSBM model?

Thanks,
-Tim Hannigan

Yes, take a look at the "get_hierarchy_tree()" function that returns you
the tree used in the layout. It returns a 'label' property map that maps
the vertex of that tree to the corresponding group label.

Best,
Tiago