I'd like to plot a complete Graph and then compute the Minimum spanning tree of it. I already can make a complete graph out of a list that countrydata gives me:
centerCoordinates = CountryData["Asia", "CenterCoordinates"];
completeGraphAsia =
GraphPlot[Table[1, {centerCoordinates}, {centerCoordinates}],
Method -> "RandomEmbedding", VertexLabeling -> True]
I tried to make a minimum spanning tree out of it, but it didn't really work... obviously, because the Kruskal MST expects a graph variable, but I couldn't figure out how else to do it:
KruskalMST = MinimumSpanningTree[completeAsia];
Any help appreciated :)
Thank you!
g = CompleteGraph[Length@centerCoordinates, VertexLabels -> "Name"]
andFindSpanningTree[g, VertexLabels -> "Name"]
$\endgroup$