Skip to content

Ordered replace

Olivier BICHLER requested to merge ordered_replace into dev

Make GraphView::replace() respect inputs/outputs order.

This was typically an issue with expandMetaOps().

Implementation idea:

  • Save the ordered inputs/outputs vectors of all the commonGraphViews containing old nodes;
  • After nodes replacement, replace all oldOIn/oldOOut inputs/outputs with newOIn/newOOut in the previously saved ordered inputs/outputs, and set commonGraphViews ordered inputs/outputs to these edited vectors;
  • This works only when the number of new inputs/outputs is less or equal to the old numbers (if the new number is less, the extra old inputs/outputs are simply removed).
Edited by Olivier BICHLER

Merge request reports

Loading