def test_find_chimera_indices_one_tile_degenerate(self): G = dnx.chimera_graph(1, 1, 5) # remove 1 node G.remove_node(4) chimera_indices = dnx.find_chimera_indices(G) self._check_matching_chimera_indices(G, chimera_indices) # remove another node G.remove_node(3) chimera_indices = dnx.find_chimera_indices(G) self._check_matching_chimera_indices(G, chimera_indices)
def test_find_chimera_indices_single_tile_alpha_labels(self): for k in range(1, 10): G = nx.relabel_nodes(dnx.chimera_graph(1, 1, k), alpha_map) # get the chimera indices, check that they match the ones already # present chimera_indices = dnx.find_chimera_indices(G) self._check_matching_chimera_indices(G, chimera_indices)
def test_find_chimera_indices_single_tile(self): for k in range(1, 10): G = dnx.chimera_graph(1, 1, k) # get the chimera indices, check that they match the ones already # present chimera_indices = dnx.find_chimera_indices(G) self._check_matching_chimera_indices(G, chimera_indices)