inda19plusplus / logik

Logisim clone
MIT License
2 stars 5 forks source link

Rework of edge storing #51

Closed default-username-852 closed 4 years ago

default-username-852 commented 4 years ago

This PR changes how edges are stored. Before, all edges were stored in the same hashmap. Now, all edges associated with components are stored in one hashmap and all edges associated with subnets are stored in a different hashmap. Also solves a bug where the program would crash if every connection with a component is removed.

Should also resolve #50 due to #50 probably being caused by an error in how edges are accesed.