luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
347 stars 20 forks source link

Print method for morphed sfnetworks #88

Closed luukvdmeer closed 3 years ago

luukvdmeer commented 3 years ago

Is your feature request related to a problem? Please describe. Objects of class morphed_sfnetwork now use the print method of morphed tbl_graphs.

Describe the solution you'd like A print method for morphed sfnetworks.

loreabad6 commented 3 years ago

Fixed on develop!

Reprex:

library(sfnetworks)
library(tidygraph)

net = as_sfnetwork(roxel)
net %>% morph(to_spatial_dense)
#> Warning: to_spatial_dense assumes attributes are constant over geometries
#> # An sfnetwork temporarily morphed to a spatial dense representation
#> # 
#> # Original network is a directed multigraph with 14 components
#> # consisting of 851 nodes and 701 edges