zxcalc / zxlive

A graphical tool for the ZX calculus
Apache License 2.0
51 stars 20 forks source link

Fix ZXLive not loading graphs as Multigraphs with auto simplify disabled #360

Closed jvdwetering closed 1 month ago

jvdwetering commented 1 month ago

When you load a graph, it was sometimes loaded as a GraphS instead of a Multigraph, and in all cases set_auto_simplify was not set properly leading to unexpected behaviour when adding edges (and exceptions).

jvdwetering commented 1 month ago

I'm merging this, but I think the solution is quite ugly, and error prone. Ideally we would set some global default value that Multigraph does not auto simplify everywhere.