Skip to content

Instantly share code, notes, and snippets.

@davibarreira
Created November 7, 2020 15:18
Show Gist options
  • Save davibarreira/f3f3045f78af6c11b4b0601d2a4048ee to your computer and use it in GitHub Desktop.
Save davibarreira/f3f3045f78af6c11b4b0601d2a4048ee to your computer and use it in GitHub Desktop.
Visualizing graph centrality
centrality = betweenness_centrality(g,normalize=false).+1
alphas = centrality./maximum(centrality).*10
nodefillc = [RGBA(0.0,0.8,0.8,i) for i in alphas]
gplot(g,nodelabel=names(df),edgelinewidth=ew,nodefillc=nodefillc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment