From 7d81f50f7f7cacdb0e46dd73837b43bce46d9484 Mon Sep 17 00:00:00 2001 From: Phil Solimine <15682144+doctor-phil@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:27:19 -0800 Subject: [PATCH] oops --- lectures/applications/networks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/applications/networks.md b/lectures/applications/networks.md index 0e5d8edb..fee601cf 100644 --- a/lectures/applications/networks.md +++ b/lectures/applications/networks.md @@ -475,7 +475,7 @@ eigen_cent = nx.eigenvector_centrality(karate) eigen_colors = [eigen_cent[i] for i in range(0,34)] fig,ax = plt.subplots() # create a figure and axis object -nx.draw(karate,ax,karate_layout,node_color=eigen_colors) +nx.draw(karate,karate_layout,ax,node_color=eigen_colors) ``` We see that there are two really highly central (yellow) nodes, on opposite sides of the network. This might be an indication that there is some homophily in the network. To verify this, let's take a look at the natural partitioning of this network by plotting the eigenvalues of its laplacian matrix.