Skip to content

Commit 1ede0cf

Browse files
authored
chore: Remove call from layout_randomly() (#2054)
1 parent 9e70106 commit 1ede0cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/layout.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,11 +1109,9 @@ layout_randomly <- function(graph, dim = c(2, 3)) {
11091109
dim <- igraph.match.arg(dim)
11101110

11111111
if (dim == 2) {
1112-
on.exit(.Call(R_igraph_finalizer))
1113-
.Call(R_igraph_layout_random, graph)
1112+
layout_random_impl(graph)
11141113
} else if (dim == 3) {
1115-
on.exit(.Call(R_igraph_finalizer))
1116-
.Call(R_igraph_layout_random_3d, graph)
1114+
layout_random_3d_impl(graph)
11171115
}
11181116
}
11191117

0 commit comments

Comments
 (0)