diff --git a/include/aidge/graph/GraphView.hpp b/include/aidge/graph/GraphView.hpp index 8ac05b5b81709f22969f9cf885920bd107780d4b..f6297f790e58a2d70db7158c9385e0fc2b9b6fc4 100644 --- a/include/aidge/graph/GraphView.hpp +++ b/include/aidge/graph/GraphView.hpp @@ -523,6 +523,9 @@ public: * - same number of input/output connections in oldNodes, parents and children are linked according * to these connections IDs * - different number of input/output connections in oldNodes => return false + * Case 4: newNodes set has no input and one output, oldNodes has any input and one output + * - reconnect output + * - all input are disconnected * @param oldNodes * @param newNodes * @return true replacement has been performed diff --git a/src/graph/GraphView.cpp b/src/graph/GraphView.cpp index 91cc0f889b8d01402b7c2e1369eb24acc63ff252..533c9dc255583f331b318c92adc19cb905e372a2 100644 --- a/src/graph/GraphView.cpp +++ b/src/graph/GraphView.cpp @@ -1157,12 +1157,12 @@ void Aidge::GraphView::insertParent(NodePtr childNode, /** * Inputs conditions: - * | old \ new | 1 node, 1 input | >1 node, 1 input | 1 node, >1 inputs | >1 node, >1 inputs | - * | ------------------- | ---------------- | ----------------- | ------------------ | ------------------ | - * | 1 node, 1 input | trivial | trivial | broadcast | broadcast | - * | >1 node, 1 input | trivial | trivial | broadcast | broadcast | - * | 1 node, >1 inputs | (take first) | (take first) | same order | X | - * | >1 node, >1 inputs | X | X | X | X | + * | old \ new | 1 node, 1 input | >1 node, 1 input | 1 node, >1 inputs | >1 node, >1 inputs | >=1 node, 0 inputs | + * | ------------------- | ---------------- | ----------------- | ------------------ | ------------------ | ------------------ | + * | 1 node, 1 input | trivial | trivial | broadcast | broadcast | trivial | + * | >1 node, 1 input | trivial | trivial | broadcast | broadcast | trivial | + * | 1 node, >1 inputs | (take first) | (take first) | same order | X | trivial | + * | >1 node, >1 inputs | X | X | X | X | trivial | * * Outputs conditions: * | old \ new | 1 node, 1 output | >1 node, 1 output | 1 node, >1 outputs | >1 node, >1 outputs |