Skip to content
Snippets Groups Projects

Implement proposal in #212

Merged Olivier BICHLER requested to merge fix_replace_spec into dev

Implement proposal in #212 (closed): add error if GraphView::replace() is used with two sets for the following conditions:

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

Outputs conditions:

old \ new 1 node, 1 output >1 node, 1 output 1 node, >1 outputs >1 node, >1 outputs
1 node, 1 output trivial trivial take first X
>1 node, 1 output trivial trivial take first X
1 node, >1 outputs (take first) (take first) same order X
>1 node, >1 outputs X X X X

Only the X cases cannot possibly be resolved deterministically with sets of node. These cases are therefore forbidden for the set-based replace() interface. The remaining cases are handled by the GraphView-based replace() interface. If they are not supported, the function returns false.

Edited by Olivier BICHLER

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading