if not method.startswith('n'):
        nodes, weights = ort.p_roots(n)