Added tip-to-root/root-to-tip flexibility to hooke.util.graph