thomasp85 / tidygraph

A tidy API for graph manipulation
https://tidygraph.data-imaginist.com
Other
543 stars 61 forks source link

node_diversity() test and igraph update #151

Closed szhorvat closed 2 years ago

szhorvat commented 2 years ago

Hello @thomasp85,

I am writing on behalf of the igraph project. igraph 1.3.0, to be released soon, makes some changes to the diversity() function, which causes the tidygraph test suite to fail. See here and below:

https://github.com/thomasp85/tidygraph/blob/master/tests/testthat/test-node_measures.R#L13

There are two problems:

thomasp85 commented 2 years ago

Thanks for the heads-up. This will get fixed today.

I'm also seeing a test error with automorphisms that is more difficult to comprehend https://cran.r-project.org/web/checks/check_results_tidygraph.html

Does that test error make sense to you?

szhorvat commented 2 years ago

This happens because these functions got a new argument, colors, which is now the second argument instead of sh. In principle, the fix should be to use something like automorphisms(graph, sh='fs') instead of simply automorphisms(graph, 'fs'). However, the sh argument seems broken and will only accept 'fm', it seems. Ping @ntamas and I'll open an issue for this soon.

szhorvat commented 2 years ago

See https://github.com/igraph/rigraph/issues/518

szhorvat commented 2 years ago

Just as a heads up, igraph 1.3.1, fixing the issue I referred to, should be submitted sometime this week.