Created
November 7, 2020 15:18
-
-
Save davibarreira/f3f3045f78af6c11b4b0601d2a4048ee to your computer and use it in GitHub Desktop.
Visualizing graph centrality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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