generalize domain / pvals of each node to accept a list of sizes for each node in a given graph