Closed dglmoore closed 6 years ago
After the open pull requests are merged I'm going to make a change to the attractors
function to address this issue.
it'll look something like this:
def attractors(net, size=None, with_basins=False):
if with_basins:
return [(nx.simple_cycles(basin),basin) for basin in basins(graph,size=size)]
else:
return nx.simple_cycles(graph)
The
neet.synchronous.basins
andneet.synchronous.attractors
produce results in different orders. That is, the attractors that are generated byattractors
correspond to the basins generated bybasins
, but they are not in the same order. There is no way to know which attractor goes with which basin.