Skip to content

Commit

Permalink
refactor: Trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Apr 2, 2023
1 parent af5a97f commit 4cb23e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/conversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ as_data_frame <- function(x, what = c("edges", "vertices", "both")) {
if (what %in% c("edges", "both")) {
el <- as_edgelist(x)
edg <- c(
list(from = el[, 1]), list(to = el[, 2]),
list(from = el[, 1], to = el[, 2]),
.Call(R_igraph_mybracket2, x, igraph_t_idx_attr, igraph_attr_idx_edge)
)
class(edg) <- "data.frame"
Expand Down

0 comments on commit 4cb23e9

Please sign in to comment.