Skip to content

Commit 7e15843

Browse files
from_numpy_array no longer in networkx 3.0 (#353)
* from_numpy_array * Automated changes * Automated changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b395985 commit 7e15843

File tree

1 file changed

+1
-1
lines changed
  • content/course/manipulation/01_numpy

1 file changed

+1
-1
lines changed

content/course/manipulation/01_numpy/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ M = np.array([[0, 0, 0, 0, 1],
752752
#| echo: false
753753
import networkx as nx
754754
755-
G = nx.from_numpy_matrix(M)
755+
G = nx.from_numpy_array(M)
756756
fig = plt.figure()
757757
nx.draw(G)
758758
plt.savefig("featured.png", bbox_inches = "tight")

0 commit comments

Comments
 (0)