Ordered replace
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 withnewOIn
/newOOut
in the previously saved ordered inputs/outputs, and setcommonGraphViews
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