Skip to content

Commit

Permalink
add_edges -> add_edges_manual
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored and aviator-bot committed Apr 9, 2024
1 parent dce9ed6 commit a3bd2e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/interface.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ add_edges <- function(graph, edges, ..., attr = list()) {

edges.orig <- ecount(graph)
on.exit(.Call(R_igraph_finalizer))
graph <- .Call(R_igraph_add_edges, graph, as_igraph_vs(graph, edges) - 1)
graph <- .Call(R_igraph_add_edges_manual, graph, as_igraph_vs(graph, edges) - 1)
edges.new <- ecount(graph)

if (edges.new - edges.orig != 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/cpp11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern "C" SEXP _igraph_getsphere(SEXP spos, SEXP sradius, SEXP scolor, SEXP lig

extern "C" {
/* .Call calls */
extern SEXP R_igraph_add_edges(void *, void *);
extern SEXP R_igraph_add_edges_manual(void *, void *);
extern SEXP R_igraph_add_env(void *);
extern SEXP R_igraph_add_myid_to_env(void *);
extern SEXP R_igraph_add_version_to_env(void *);
Expand Down Expand Up @@ -480,7 +480,7 @@ extern SEXP promise_env_(void *);
extern SEXP promise_expr_(void *);

static const R_CallMethodDef CallEntries[] = {
{"R_igraph_add_edges", (DL_FUNC) &R_igraph_add_edges, 2},
{"R_igraph_add_edges_manual", (DL_FUNC) &R_igraph_add_edges_manual, 2},
{"R_igraph_add_env", (DL_FUNC) &R_igraph_add_env, 1},
{"R_igraph_add_myid_to_env", (DL_FUNC) &R_igraph_add_myid_to_env, 1},
{"R_igraph_add_version_to_env", (DL_FUNC) &R_igraph_add_version_to_env, 1},
Expand Down
2 changes: 1 addition & 1 deletion src/rinterface_extra.c
Original file line number Diff line number Diff line change
Expand Up @@ -3787,7 +3787,7 @@ SEXP R_igraph_mybracket3_set(SEXP graph, SEXP pidx1, SEXP pidx2,
return newgraph;
}

SEXP R_igraph_add_edges(SEXP graph, SEXP edges) {
SEXP R_igraph_add_edges_manual(SEXP graph, SEXP edges) {

igraph_vector_int_t v; /* do NOT destroy! */
igraph_t g;
Expand Down

0 comments on commit a3bd2e7

Please sign in to comment.