Example 8 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.
africa = CountryData["Africa"];No output - this step sets something up for the next one.
borderQ[cont1_, cont2_] :=
MemberQ[CountryData[cont1, "BorderingCountries"], CountryData[cont2]];No output - this step sets something up for the next one.
adjm = Table[If[borderQ[u, v] || borderQ[v, u], 1, 0], {u, africa}, {v, africa}];No output - this step sets something up for the next one.
coords = Reverse[CountryData[#, "CenterCoordinates"]& /@ africa, 2];No output - this step sets something up for the next one.
southgraph = AdjacencyGraph[africa, adjm, VertexCoordinates -> coords, EdgeStyle -> Directive[Thickness[.003], White], VertexStyle -> Directive[EdgeForm[GrayLevel[.8]], GrayLevel[.7]], VertexSize -> .8];No output - this step sets something up for the next one.
tour = FindPostmanTour[southgraph];No output - this step sets something up for the next one.
path = tour[[1, All, 1]];
vrule = Thread[VertexList[southgraph] -> Range[VertexCount[southgraph]]];
route = GraphEmbedding[southgraph][[Join[path, {path[[1]]}] /. vrule]];No output - this step sets something up for the next one.
Show[{Graphics[{LightGray, CountryData[#, "Polygon"] & /@ africa}], HighlightGraph[southgraph, path[[1]], VertexLabels -> "Name"], Graphics[{Arrowheads[Join[{0}, ConstantArray[.018, 45]]], GrayLevel[.3], Arrow[BSplineCurve[route, SplineDegree -> 2]]}]}]-Graphics-All recipes · Function reference · Use this from an MCP client