I see many people running into a similar issue with great answers but I believe this is an unanswered variation to this question!
I have a graph
g <- reactive(graph_from_dataframe(df))
Now I want to assign a degree property to this.
V(g())$degree <- degree(g())
This howevers throws the null assignment error but I don't know how to assign it without calling g. I avoided this by assigning the degree property inside an output$... however this heavily violates DRY and leads to double degree calculation.