neat.STree.__copy__

STree.__copy__(new_tree=None)[source]

Fill the new_tree with it’s corresponding nodes in the same structure as self, 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 the self is copied. If None, returns a copy of self.

Returns

Return type

The new tree instance