def test_get_ordered_by_indx_set_of_parents(self):
    g1 = NetworkGraph(self.s1.structure)
    g1.add_nodes(self.s1.structure.nodes_labels)
    g1.add_edges(self.s1.structure.edges)
    for node in self.s1.structure.nodes_labels:
        aggr_info = g1.get_ordered_by_indx_set_of_parents(node)
        for indx in range((len(aggr_info[0]) - 1)):
            self.assertLess(g1.get_node_indx(aggr_info[0][indx]), g1.get_node_indx(aggr_info[0][(indx + 1)]))
        for (par, par_indx) in zip(aggr_info[0], aggr_info[1]):
            self.assertEqual(g1.get_node_indx(par), par_indx)
        for (par, par_val) in zip(aggr_info[0], aggr_info[2]):
            self.assertEqual(g1._graph_struct.get_states_number(par), par_val)
def test_get_ordered_by_indx_set_of_parents(self):
    g1 = NetworkGraph(self.s1.structure)
    g1.add_nodes(self.s1.structure.nodes_labels)
    g1.add_edges(self.s1.structure.edges)
    for node in self.s1.structure.nodes_labels:
        aggr_info = g1.get_ordered_by_indx_set_of_parents(node)
        for indx in range((len(aggr_info[0]) - 1)):
            self.assertLess(g1.get_node_indx(aggr_info[0][indx]), g1.get_node_indx(aggr_info[0][(indx + 1)]))
        for (par, par_indx) in zip(aggr_info[0], aggr_info[1]):
            self.assertEqual(g1.get_node_indx(par), par_indx)
        for (par, par_val) in zip(aggr_info[0], aggr_info[2]):
            self.assertEqual(g1._graph_struct.get_states_number(par), par_val)