parse tree of spm dependencies