Created
November 7, 2020 15:36
-
-
Save davibarreira/6062eac1f77c7ecdca3a222097ed5c4c to your computer and use it in GitHub Desktop.
MST with Julia
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
g_mst = SimpleWeightedGraph(ncol(df)) | |
for i in kruskal_mst(g,minimize=false) | |
add_edge!(g_mst,i.src,i.dst,i.weight) | |
end | |
gplot(g_mst,nodelabel=names(df)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment