setting vp.pos to emphasize block structure in state.draw?

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

setting vp.pos to emphasize block structure in state.draw?

sam
hi there,

are there any tips to set the position vertex property so that group
structure is visible, as in this picture?

https://graph-tool.skewed.de/static/doc/_images/football-sbm-fit.svg

cheers,
-sam



--
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: setting vp.pos to emphasize block structure in state.draw?

Tiago Peixoto
Administrator
Am 14.05.20 um 23:31 schrieb sam:
> hi there,
>
> are there any tips to set the position vertex property so that group
> structure is visible, as in this picture?
>
> https://graph-tool.skewed.de/static/doc/_images/football-sbm-fit.svg
>

You can play with the 'groups' and 'gamma' parameters of sfdp_layout(),
but this does not always give very good results. YMMV.

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>