onegpy.solutions.node.get_all_terminal_points

onegpy.solutions.node.get_all_terminal_points(root)[source]

function for getting all terminal points in the solution this function is for crossover in MLPS-GP

Parameters:root – Node object. root node of target solution.
Returns:list of tuple(Node, int). (parent, index of terminal node)