Tree algorithm for LCA does not need to be in nx namespace.