Skip to content

Utilizing to_spatial_smooth on a directed network #236

Answered by luukvdmeer
jucardwell asked this question in Q&A
Discussion options

You must be logged in to vote

From sfnetworks v1.0, you can work around this by first creating the network, cleaning it, and only then creating the "mixed network" (i.e. the network with both directed and undirected edges through the duplicate-and-reverse workflow) using the new morpher to_spatial_mixed():

as_sfnetwork(roxel) |>
  convert(to_spatial_smooth) |>
  convert(to_spatial_mixed, directed = oneway)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jucardwell
Comment options

@jucardwell
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by luukvdmeer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants