Skip to content

Commit

Permalink
Fix removed method from networkx (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoelmarques authored Jan 9, 2023
1 parent b59b007 commit 6ec1b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/06_examples_max_cut_and_tsp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
"n = 3\n",
"num_qubits = n**2\n",
"tsp = Tsp.create_random_instance(n, seed=123)\n",
"adj_matrix = nx.to_numpy_matrix(tsp.graph)\n",
"adj_matrix = nx.to_numpy_array(tsp.graph)\n",
"print(\"distance\\n\", adj_matrix)\n",
"\n",
"colors = [\"r\" for node in tsp.graph.nodes]\n",
Expand Down

0 comments on commit 6ec1b0f

Please sign in to comment.