Skip to content

Commit f04cf68

Browse files
refactor: drop attributes in a more straightforward fashion in graphlet_basis() (#1452)
2 parents 18afa55 + da9b611 commit f04cf68

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

R/glet.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,9 @@ graphlet_basis <- function(graph, weights = NULL) {
118118
weights <- NULL
119119
}
120120

121-
## Drop all attributes, we don't want to deal with them, TODO
122-
graph2 <- graph
123-
graph2[[igraph_t_idx_attr]] <- list(c(1, 0, 1), list(), list(), list())
124-
125121
on.exit(.Call(R_igraph_finalizer))
126122
## Function call
127-
res <- .Call(R_igraph_graphlets_candidate_basis, graph2, weights)
123+
res <- .Call(R_igraph_graphlets_candidate_basis, graph, weights)
128124

129125
res
130126
}

0 commit comments

Comments
 (0)