Trait GlobalNeatCounter

Source
pub trait GlobalNeatCounter {
    // Required methods
    fn try_adding_connection(&mut self, from: usize, to: usize) -> Option<usize>;
    fn get_new_node(&mut self) -> usize;
}
Expand description

Trait required by neat struct

Required Methods§

Source

fn try_adding_connection(&mut self, from: usize, to: usize) -> Option<usize>

returns the innovation number of new connection if a connection can be added, otherwise returns None

Source

fn get_new_node(&mut self) -> usize

returns the index of new node

Implementors§