MAINT: directly compute node_to_set instead of first computing node_to_pset; this uses more cython