Is your feature request related to a problem? Please describe.
In the new release of sfnetworks, the to_spatial_contracted morpher (which merges nodes) and the to_spatial_simple morpher (which merges edges) have the argument summarise_attributes which allows you to specify on a per-attribute basis how the attribute values of a new, merged feature should be inferred from the original features. There is one more morpher currently that merges features: to_spatial_smooth merges edges after removing pseudo nodes. It would be nice when the summarise_attributes argument is also implemented there.
However: the implementation of this argument in the contraction and simplification was quite easy, since igraph provides it and it only had to be forwarded to igraph::contract and igraph::simplify respectively. The smooth functionality however is self-implemented and does not use existing igraph functions (as far as I know igraph does not have a function for removing pseudo nodes). This will make it more complicated to add the argument.
Describe the solution you'd like
A summarise_attributes argument in to_spatial_smooth.
Is your feature request related to a problem? Please describe. In the new release of sfnetworks, the
to_spatial_contracted
morpher (which merges nodes) and theto_spatial_simple
morpher (which merges edges) have the argumentsummarise_attributes
which allows you to specify on a per-attribute basis how the attribute values of a new, merged feature should be inferred from the original features. There is one more morpher currently that merges features:to_spatial_smooth
merges edges after removing pseudo nodes. It would be nice when thesummarise_attributes
argument is also implemented there.However: the implementation of this argument in the contraction and simplification was quite easy, since igraph provides it and it only had to be forwarded to
igraph::contract
andigraph::simplify
respectively. The smooth functionality however is self-implemented and does not use existing igraph functions (as far as I know igraph does not have a function for removing pseudo nodes). This will make it more complicated to add the argument.Describe the solution you'd like A
summarise_attributes
argument into_spatial_smooth
.