Skip to content

Commit cb7dc69

Browse files
committed
feat: use alignment with _layout_auto
1 parent 81e789d commit cb7dc69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/igraph/layout.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,11 @@ def _layout_auto(graph, *args, **kwds):
621621
algo = "fr"
622622
else:
623623
algo = "drl"
624-
return graph.layout(algo, *args, **kwds)
624+
625+
layout = graph.layout(algo, *args, **kwds)
626+
if graph.vcount() <= 1000:
627+
layout = align_layout(graph, layout)
628+
return layout
625629

626630

627631
def _layout_sugiyama(

0 commit comments

Comments
 (0)