Made use of node transpositions (ie - tree vs graph) easily switchable