neat.STree.__copy__¶
- STree.__copy__(new_tree=None)[source]¶
Fill the
new_treewith it’s corresponding nodes in the same structure asself, and copies all node variables that both tree classes have in common- Parameters:
new_tree (neat.STree or derived class (default is
None)) – the tree class in which theselfis copied. IfNone, returns a copy ofself.- Return type:
The new tree instance