sg-dev / pathpy

pathpy is an OpenSource python package for the analysis of time series data on networks using higher-order and multi-order graphical models.
GNU Affero General Public License v3.0
2 stars 0 forks source link

Errron when removing self-loop #81

Closed IngoScholtes closed 6 years ago

IngoScholtes commented 6 years ago

The function pathpy.Network.remove_edge raises a KeyError, when a self-loop is removed.

Minimal example to reproduce:

n = pp.Network()
n.add_edge('a', 'a')
n.remove_edge('a', 'a')
IngoScholtes commented 6 years ago

fixed in 5eab556