function n = AI_make_node(value,att_name,parent,children,type)
%
% AI_make_node - make node for decision tree
% Call:
%     n = AI_make_node(1,12,[ ],0);
% On input:
%     value (scalar): attribute index of type=internal (1)
%                     False/True if type leaf
%     att_name (string): attribute name
%     parent (scalar): index of parent node in node array
%     children (vector): indexes of children nodes in array
%     type (scalar): 0 if leaf; 1 if internal
% On output:
%     n (node structure): node for decision tree
% Custom functions used:
%     none
% Author:
%     T. Henderson, UU, 11/2002
% Method:
%      

global nodes num_nodes

num_nodes = num_nodes+1;
nodes(num_nodes).parent = parent;
nodes(num_nodes).children = children;
nodes(num_nodes).value = value;
nodes(num_nodes).name = att_name;
nodes(num_nodes).type = type;
nodes(num_nodes).gain = 0;
n = num_nodes;



