tilltnet / egor

R Package for importing and analysing ego-centered-network data.
http://egor.tillt.net
GNU Affero General Public License v3.0
23 stars 4 forks source link

as_igraph doesn't correctly import .egoID as graph attribute #51

Closed raffaelevacca closed 4 years ago

raffaelevacca commented 4 years ago

as_igraph(x, graph.attrs = ".egoID") should return a list of igraphs with each igraph having its egoID (a vector of length 1, from x$ego$.egoID) as graph attribute. Instead, the function is setting a one-column tibble with .egoID (as in x$ego[1]) as graph vector in each igraph. Problem seems to be in conversions.R, line 83. Note that graph.attrs = ".egoID" is the default in as_igraph.

tilltnet commented 4 years ago

Thanks for reporting!