For short the code is here. I want to be able to mutate simultaneously the
nodes in the graph and any other field (for instance the ordering). This however I can not achieve if I have
Vec<Expr> which is why I changed it to
RefCell. However, now I get this compilation error, which I understand why I get it. However, I did not think of any approach to go around it, could anyone help with any suggestion.
Just to give a more detail essentially I need to be able to mutate different parts of the struct simultanously, however methods like the
get above fails in this situation.