Skip to content

Commit bfce115

Browse files
committed
chore: Adapt to current igraph
1 parent 5a2605d commit bfce115

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/flatten.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ dm_flatten_to_tbl_impl <- function(dm, start, list_of_pts, join, join_name, squa
101101

102102
# each next table needs to be accessible from the former table (note: directed relations)
103103
# we achieve this with a depth-first-search (DFS) with param `unreachable = FALSE`
104-
dfs <- igraph::dfs(g, start, unreachable = FALSE, father = TRUE, dist = TRUE)
104+
dfs <- igraph::dfs(g, start, unreachable = FALSE, parent = TRUE, dist = TRUE)
105105

106106
# compute all table names
107107
order_df <-
108108
tibble(
109109
name = names(dfs[["order"]]),
110-
pred = names(V(g))[unclass(dfs[["father"]])[name]]
110+
pred = names(V(g))[unclass(dfs[["parent"]])[name]]
111111
)
112112

113113
# function to detect any reason for abort()

0 commit comments

Comments
 (0)