Programatically determining blocks on visualization with hSBM

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Programatically determining blocks on visualization with hSBM

timhannigan
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



--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Programatically determining blocks on visualization with hSBM

Tiago Peixoto
Administrator
Am 28.05.20 um 01:48 schrieb timhannigan:

> 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?
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

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>