On line 988 in juce_AudioProcessorGraph, would is make sense to do something like…
if (nodeId > lastNodeId)
lastNodeId = nodeId;
otherwise couldn’t you end up with duplicate nodes if you add nodeIds in an order that isn’t necessarily rising (or sequential).