-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix color_change, fusion, and match_ids #244
Conversation
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. |
…between two vertices
merge master to fix-multigraph-rewrites
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