SocialCognitiveSystems / PRIMO

GNU Lesser General Public License v3.0
4 stars 3 forks source link

Fix change_node_name bug #24

Closed jpoeppel closed 6 years ago

jpoeppel commented 6 years ago

Changing a node's name a second time resulted in a KeyError with the first new name due to an interesting property of allowing mutable objects as keys in dictionaries (didn't know that was possible before).

Kolja Berger also made the networks.py file more PEP8 compliant which I added to this PR.