Open loreabad6 opened 2 years ago
We rely on tidygraph::graph_join()
to do the joining. But indeed this should not happen I would say. Does raise the question: what to do when joining a directed with an undirected network? Raise an error? Or just let tidygraph
decide on this?
Describe the bug When giving two unidrected networks to
st_network_join()
the result seems to always be a directed network.Reproducible example
Created on 2021-09-23 by the reprex package (v0.3.0)
Expected behavior Direction of the input networks should be preserved after performing a network join. Workaround now is to run
convert(to_undirected)
to the result.R Session Info
``` r sessionInfo() #> R version 4.0.3 (2020-10-10) #> Platform: x86_64-w64-mingw32/x64 (64-bit) #> Running under: Windows 10 x64 (build 19043) #> #> Matrix products: default #> #> locale: #> [1] LC_COLLATE=English_Austria.1252 LC_CTYPE=English_Austria.1252 #> [3] LC_MONETARY=English_Austria.1252 LC_NUMERIC=C #> [5] LC_TIME=English_Austria.1252 #> #> attached base packages: #> [1] stats graphics grDevices utils datasets methods base #> #> loaded via a namespace (and not attached): #> [1] compiler_4.0.3 magrittr_2.0.1 tools_4.0.3 htmltools_0.5.0 #> [5] yaml_2.2.1 stringi_1.7.3 rmarkdown_2.4 highr_0.8 #> [9] knitr_1.30 stringr_1.4.0 xfun_0.19 digest_0.6.27 #> [13] rlang_0.4.11 evaluate_0.14 ```