thomasp85 / tidygraph

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

`trunc_mat()` deprecated in tibble #173

Closed krlmlr closed 8 months ago

krlmlr commented 1 year ago

https://github.com/tidyverse/tibble/pull/1517 breaks trunc_mat() for good, this affects tidygraph. This is important so that I can get rid of a ton of legacy code in both tibble and pillar.

I can release to CRAN, but the output in tidygraph will be slightly different. Please see https://pillar.r-lib.org/articles/extending.html for the new API. Happy to help.

dev

tidygraph::create_notable("bull")
#> # A tbl_graph: 5 nodes and 5 edges
#> #
#> # An undirected simple graph with 1 component
#> #
#> # A tibble: 5 × 0
#> #
#> # A tibble: 5 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     1     3
#> 3     2     3
#> # … with 2 more rows

Created on 2023-03-05 with reprex v2.0.2

tibble 3.1.8

tidygraph::create_notable("bull")
#> # A tbl_graph: 5 nodes and 5 edges
#> #
#> # An undirected simple graph with 1 component
#> #
#> # Node Data: 5 × 0 (active)
#> #
#> # Edge Data: 5 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     1     3
#> 3     2     3
#> # … with 2 more rows

Created on 2023-03-05 with reprex v2.0.2