Abstract
Protected
renameNOTE: this method has to do with graph modification and as of the current set up, we should not allow it to be called on any immutable graphs. As such, we protect it and let the main graph expose it. The other benefit of exposing this in the main graph is that we could do better duplicated path check
TODO: this will be removed once we have full support for section index See https://github.com/finos/legend-studio/issues/1067
Since this is the basis of the Pure graph itself, it shares many methods with the graph. But the graph holds references to many basic graphs and expose those to outside consumers as if it is one graph.
As such, to avoid confusion, we add
Own
to methods in basic graph for methods that only deal with elements belonging to the basic graph.