Wages - make links bidirectional, enforce tree structure, count node depth