You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I checked - inside cluster 2-way arrow works fine. It only breaks between clusters. Looks like no one ever tested concentrate attribute with clusters. Could it be fixed?
The text was updated successfully, but these errors were encountered:
bugriy
changed the title
2-way arrows not possible between nodes of different clusters
concentrate attribute does not work between nodes of different clusters
Jan 10, 2022
If I render graph without clusters everything goes fine. 2 way connections turn into 2-way arrows according to concentrate = true attribute.
`
ndf1 <-
data.frame(
id = c('a', 'b', 'c','d','e', 'f'),
label = c('a', 'b', 'c','d','e', 'f')#,
# cluster = c('1', '1', '2', '2', '2' , '3' )
)
edf1 <-
data.frame(
from = c( 'f', 'c', 'f', 'a', 'd' ),
to = c( 'c', 'f','a', 'f','e' ))
`
But as I add clusters - 2-way arrows between nodes of different clusters turn into 2 one-way arrows:
`ndf1 <-
data.frame(
id = c('a', 'b', 'c', 'd', 'e', 'f'),
label = c('a', 'b', 'c', 'd', 'e', 'f'),
cluster = c('1', '1', '2', '2', '2' , '3')
)
edf1 <-
data.frame(from = c('f', 'c', 'f', 'a', 'd'),
to = c('c', 'f', 'a', 'f', 'e'))
DiagrammeR::create_graph() %>%
add_global_graph_attrs("layout", "dot", "graph") %>%
add_global_graph_attrs("concentrate", "true", "graph") %>%
add_global_graph_attrs("rankdir", "TB", "graph") %>%
DiagrammeR::add_nodes_from_table(table = ndf1,
label_col = label) %>%
DiagrammeR::add_edges_from_table(
table = edf1,
from_col = from,
to_col = to,
from_to_map = id_external
) %>%
render_graph()`
As I checked - inside cluster 2-way arrow works fine. It only breaks between clusters. Looks like no one ever tested concentrate attribute with clusters. Could it be fixed?
`
grViz("
digraph G {
}
")
`
The text was updated successfully, but these errors were encountered: