%% Specify Node and Edge Style in Tree Plot
% Plot two trees. Specify node 1 and node 7 as root nodes by setting their parent indices to 0. Use blue circles for the nodes, and red-dotted lines with cross markers for the edges.

p = [0 1 1 2 3 3 0 7 7];
treeplot(p,'bo','rx:')

%
% Copyright 2020 The MathWorks, Inc.