Closed schochastics closed 3 years ago
Thanks. These are related to some new functions in v1.4 for interfacing with igraph. We'll get them corrected, but in the meantime here's an inelegant workaround for these two cases. It avoids using the problematic functions by working on the matrix object davis
, then converts the result to an igraph object only at the end.
l1_star <- graph_from_adjacency_matrix(backbone.extract(sdsm(davis),signed = FALSE),mode="undirected")
l2_star <- graph_from_adjacency_matrix(backbone.extract(fixedcol(davis),signed = FALSE),mode="undirected")
It turns out this was also affecting the interface with statnet, but it's fixed now in the develop branch. We'll add it to master when we make the next CRAN release.
This is two issues in one (sorry...):
1) When the input is an igraph object, the output seems to always be a bidirectional graph instead of a undirected graph (see l2). 2) When the backbone is empty, there is an error message (see l1). This is probably due to setting the edge attribute sign
Here is a reprex: