public Iterator iterator(Node rootNode){
NodeBridge r;
if (rootNode!=null && rootNode instanceof NodeBridge) r=(NodeBridge)rootNode;
else r=(NodeBridge)getRoot();
return IteratorUtils.asIterator(r.preorderEnumeration());
}
public Iterator iterator(){
return iterator(null);
}