Skip to content

Commit

Permalink
refactor: drop attributes in a more straightforward fashion in `graph…
Browse files Browse the repository at this point in the history
…let_basis()` (#1452)
  • Loading branch information
aviator-app[bot] authored Aug 22, 2024
2 parents 18afa55 + da9b611 commit f04cf68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/glet.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,9 @@ graphlet_basis <- function(graph, weights = NULL) {
weights <- NULL
}

## Drop all attributes, we don't want to deal with them, TODO
graph2 <- graph
graph2[[igraph_t_idx_attr]] <- list(c(1, 0, 1), list(), list(), list())

on.exit(.Call(R_igraph_finalizer))
## Function call
res <- .Call(R_igraph_graphlets_candidate_basis, graph2, weights)
res <- .Call(R_igraph_graphlets_candidate_basis, graph, weights)

res
}
Expand Down

0 comments on commit f04cf68

Please sign in to comment.