def aux_build_p_combs_structure(self, graph, p_vals):
    p_combs = graph.build_p_comb_structure_for_a_node(p_vals)
    p_possible_vals = []
    for val in p_vals:
        vals = [v for v in range(val)]
        p_possible_vals.extend(vals)
        comb_struct = set(itertools.product(p_possible_vals, repeat=len(p_vals)))
        for comb in comb_struct:
            self.assertIn(np.array(comb), p_combs)
def aux_build_p_combs_structure(self, graph, p_vals):
    p_combs = graph.build_p_comb_structure_for_a_node(p_vals)
    p_possible_vals = []
    for val in p_vals:
        vals = [v for v in range(val)]
        p_possible_vals.extend(vals)
        comb_struct = set(itertools.product(p_possible_vals, repeat=len(p_vals)))
        for comb in comb_struct:
            self.assertIn(np.array(comb), p_combs)