CharJon / GeCO

Generators for Combinatorial Optimization
MIT License
14 stars 4 forks source link

networkx decorator changed #124

Closed CharJon closed 2 years ago

CharJon commented 2 years ago

Networkx decorator changed. This causes `networkx.exception.NetworkXError: index -1 not a parameter index and this function doesn't have args

../../miniconda3/envs/geco2/lib/python3.8/site-packages/networkx/utils/decorators.py:1029: NetworkXError` and needs to be fixed.

CharJon commented 2 years ago

Instead of using the position of the seed parameter like @py_random_state(-1) we need to use its name e.g. @py_random_state("seed")

CharJon commented 2 years ago

Done