0

I am using the python library Graph-Tool to create a network graph. There are about 6 distinct clusters/separate connected components in my graph. However, I would like them to be closer together in the graph. enter image description here

Basically, I don't want so much white space between the components. Is there a parameter I can tweak to change this?

Harry Baker
  • 93
  • 2
  • 9

1 Answers1

0

If you look a the documentation for sfdp_layout you will see many parameters:

https://graph-tool.skewed.de/static/doc/draw.html#graph_tool.draw.sfdp_layout

Why not experiment with some of them?

In particular, you might try changing the parameter p, which controls the exponent of the repulsive force between nodes.

Tiago Peixoto
  • 5,149
  • 2
  • 28
  • 28
  • I finally figured outn that sfdp is what controls the level of repulsion. Tweaking gamma and mu gave me what I was looking for. Thanks! Great tool. – Harry Baker Jul 14 '17 at 19:35