nodes compositions


Description

There are two types of nodes: branches and leafs. 

diputree can have branches and/or leafs. Only branches can have other branches and/or leafs.

Diagram

diagram of <diputree>, diagram of<b> and diagram of <l> 


1 branch

<diputree>
 <has>
  <b/>
 </has>
</diputree>

Explanation

the document element diputree

<diputree>

the has relation between diputree and the branch

 <has>

the branch

  <b/>
 </has>
</diputree>


1 branch and 1 leaf (canonical)

<diputree>
 <has>
  <b/>
 </has>
 <has>
  <l/>
 </has>
</diputree>

 

Explanation

the document element diputree

<diputree>

the has relation between diputree and the branch

 <has>

the branch

  <b/>
 </has> 

the has relation between diputree and leaf

 <has>

the leaf

  <l\>
 </has>
</diputree>


1 branch and 1 leaf (compressed)

<diputree>
 <has>
  <b/>
  <l/>
 </has>
</diputree>

Explanation

the document element diputree

<diputree>

the has relation between diputree and the branch and the has relation between diputree and the leaf, the two has relations are compressed in one <has>.

 <has>

the branch

  <b/>

the leaf

  <l/>
 </has>
</diputree>


1 branch within 1 branch

<diputree>
 <has>
  <b>
   <has>
    <b/>
   </has>
  </b>
 </has>
</diputree>

 

Explanation

the document element diputree

<diputree>

the has relation between diputree and the branch.

 <has>

the parent branch

  <b>

the has relation between parent branch and the child branch.

   <has>

the child branch

    <b/>
   </has>
  </b>
 </has>
</diputree>


diputree documentation © 2000 dipu