4/7/2024 0 Comments Graph layout tool![]() ~/anaconda3/envs/gt/lib/python3.9/site-packages/graph_tool/inference/nested_blockmodel.py in draw(self, **kwargs) So, I managed to at least get somewhere with this: def getAngle(vec): (Would anyone recommend a good introductory treatment on graph visualizations including this type (connectogram)?). ![]() Or am I missing the whole point somewhat? circular and edge bundling, but using a clustering (partition of the vertices) of my own, instead of the stochastic block model? In a sense, I guess I would just like to be able to use the circular + edge bundling feature on its own. How could I (in gt) place the vertex labels on a line drawn from the center? Like this.G_celegans = gt.load_graph("c.elegans_neural.male_1.graphml")Ĭelegans_state = gt.minimize_nested_blockmodel_dl(g_celegans)Ĭelegans_state.draw(vertex_text = v_prop, bg_color = 'w') For this I use the following: import graph_tool.all as gt ![]() As an example, I am trying to plot the C.Elegans connectome using the wonderful Python module graph-tool by Tiago Peixoto. I am very fond of the circular layout with edge bundling used to visualize very large graphs. However, I'm not a programmer, so my code may be less than elegant any suggestions of improvement will be gratefully appreciated. My main field is mathematics, but I am somewhat familiar with Python and programming in general. I am very new to graph visualizations and software like graph-tool (gt).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |