Hi there,
lets assume that there is a tree structure
create (n1:Item {MId:"1000",expanded:true})
create (n11:Item {MId:"1100",expanded:false})
create (n12:Item {MId:"1200",expanded:true})
create (n111:Item {MId:"1110",expanded:false})
create (n112:...