function  LEM_show_tree1(nodes,n)
%

BLANK = ' ';

if isempty(nodes)
    return
end

level = nodes(n).level;
state = nodes(n).name;
children = nodes(n).children;

white = [];
for p = 1:level
    white = [white,BLANK];
end

fprintf('%s',white);
fprintf('[%d]\n',state);

if isempty(children)
    return
end

num_children = length(children);
for c = 1:num_children
    LEM_show_tree(nodes,children(c));
end
