Sum values in child edges of igraph/tidygraph
I have a sf_network
object where I would like to sum all values from each edge such that the root edge would be equal to the sum of all the others. I’ve made a simple example for testing purposes below. I am working with igraph
and tidygraph
and would prefer a solution that uses them.