Closed
Description
edit for a more concise example.
I noticed that data = get_edges(collapse = "all")
for edges isn't working. I was under the impression that this function argument should serve to remove redundant edges. Here is a code example:
library(tidyverse)
library(tidygraph)
library(ggraph)
graph <- tribble(
~from, ~to,
"a", "b",
"a", "b",
"a", "c",
"b", "c"
) %>%
as_tbl_graph()
layout <- create_layout(graph, layout = "kk")
get_edges("short", collapse = "all")(layout)
If the two redundant edges between "a" and "b" were collapsed into one, then the resulting df should have three rows. However, because the edges aren't collapsed, we have four rows and two redundant edges between "a" and "b".
tidygraph version: 1.3.0
ggraph version: 2.1.0
ggplot2 version: 3.4.4
OS: Linux/Debian 13 (trixie)
Metadata
Metadata
Assignees
Labels
No labels