HyperCodec / neat

Crate for implementing NeuroEvolution of Augmenting Topologies
MIT License
4 stars 1 forks source link

`is_connection_cyclic` doesn't need to be recursive #5

Closed HyperCodec closed 7 months ago

HyperCodec commented 7 months ago

The recursiveness of the is_connection_cyclic makes it hard for contributors to understand and should be refactored to a loop for readability.

HyperCodec commented 7 months ago

13 should fix this with DFS, will close once I solve the other issues in the PR and then merge.