Closed boldar99 closed 5 months ago
This only fixes colour change method in editor_actions.py but not the one in basicrules.py. I don't know why there are two implementations of colour change and why they are implemented differently. I tried to copy the implementation of editor_actions.py to basicrules.py and it seems to work.
I have pushed the color_change fix for basicrules.py.
I have now fixed spider fusion in rules.py. I don't think fusion or color_change is defined anywhere else. So this PR should be good to merge.
ah self loops are still broken
Fixed!
After the merge conflict is solved, this can probably be merged.
I have resolved the conflict but I need to check if that broke anything
This can be merged now!
Fix the
color_change
,fusion
, andmatch_ids_parallel
methods that were broken with incident multi-edges.Changes:
incident_edges
now iterates through all individual incident edges.match_ids_parallel
returns False if the degree of the given vertex is not 2. This stops the program from callingedge_type
which is undefined for multi-edges.Related to zxcalc/zxlive#256