The current implementation of no_shapechange only looks for new outputs in the output direction of the selected vertex. It should be easy to also include parallel paths by looking at the setdiff between flatten(vi) and all vertices in the graph and filter out the ones which does not have the exact same delta shapes compared to the input.
The current implementation of
no_shapechange
only looks for new outputs in the output direction of the selected vertex. It should be easy to also include parallel paths by looking at the setdiff betweenflatten(vi)
and all vertices in the graph and filter out the ones which does not have the exact same delta shapes compared to the input.