diff options
Diffstat (limited to 'Build/source/utils/asymptote/doc/binarytreetest.asy')
-rw-r--r-- | Build/source/utils/asymptote/doc/binarytreetest.asy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/doc/binarytreetest.asy b/Build/source/utils/asymptote/doc/binarytreetest.asy new file mode 100644 index 00000000000..af55292e4a3 --- /dev/null +++ b/Build/source/utils/asymptote/doc/binarytreetest.asy @@ -0,0 +1,13 @@ +import binarytree; + +picture pic,pic2; + +binarytree bt=binarytree(1,2,4,nil,5,nil,nil,0,nil,nil,3,6,nil,nil,7); +draw(pic,bt,condensed=false); + +binarytree st=searchtree(10,5,2,1,3,4,7,6,8,9,15,13,12,11,14,17,16,18,19); +draw(pic2,st,blue,condensed=true); + +add(pic.fit(),(0,0),10N); +add(pic2.fit(),(0,0),10S); + |