diff --git a/src/graph/GraphView.cpp b/src/graph/GraphView.cpp index 066832520481e241d5bc9e081ce4e99943dbf2a5..b0704e0e9b622a541320bb3e92952b781766d24a 100644 --- a/src/graph/GraphView.cpp +++ b/src/graph/GraphView.cpp @@ -694,11 +694,7 @@ void Aidge::GraphView::add(std::shared_ptr<Node> node, bool includeLearnablePara } else { // Different instance with the same name – generate an unique name std::string newName = node->createUniqueName(node->name()); - - while (mNodeRegistry.find(newName) != mNodeRegistry.end()) { - newName = node->createUniqueName(newName + "_1"); - } - + Log::notice("Node name \"{}\" is a duplicate, renaming it to {}.\n", node->name(), newName); node->setName(newName);