Skip to content

Commit f25ee95

Browse files
committed
feat: use alignment with _layout_auto
1 parent 2de9ecf commit f25ee95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/igraph/layout.py

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

626627

627628
def _layout_sugiyama(

0 commit comments

Comments
 (0)