Skip to content

Commit c920c39

Browse files
committed
s1
1 parent 7f1c115 commit c920c39

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/structural-properties.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,8 +1943,11 @@ constraint <- function(graph, nodes = V(graph), weights = NULL) {
19431943
}
19441944
}
19451945

1946-
on.exit(.Call(R_igraph_finalizer))
1947-
res <- .Call(Rx_igraph_constraint, graph, nodes - 1, as.numeric(weights))
1946+
res <- constraint_impl(
1947+
graph = graph,
1948+
vids = nodes,
1949+
weights = weights
1950+
)
19481951
if (igraph_opt("add.vertex.names") && is_named(graph)) {
19491952
names(res) <- V(graph)$name[nodes]
19501953
}

0 commit comments

Comments
 (0)