Totally happened to me in since I was able to test in 5.5.2.
I thought I was literally going crazy, I mean it. I tried 3x and kept having the function revert back to the wiring it was before i edited it. Yet some named-references would still be in the graph.