Skip to content

Use createUniqueName() while adding nodes from a Graphview to another.

Context

The

bool GraphView::add(std::shared_ptr<GraphView> otherGraph,
             bool includeLearnableParam = true);

function does not check for duplicate node names before adding nodes from a given Graphview to another Graphview.

Modified files

  • aidge_core/src/graph/GraphView.cpp, to add a condition that checks for duplicate node names in the target Graphview and uses createUniqueName() if a duplicate is found;
Edited by Cyril Moineau

Merge request reports

Loading