You can look at test.kml to see how a location "stanza" looks and how a path "stanza" looks.
....several "stanzas," each representing a city ....one "stanza" representing a shortest path between a given pair of cities
Seeing your map.
Every user login on the CS machines has a special "hidden" directory called ~/.public-html located in your home directory (here denoted ~). Anything placed in this special directory "served" by the CS web server as http://www.cs.uiowa.edu/~hawkid/filename, assuming hawkid is your CS login name. To move your KML file into this directory:
% mv graph.kml ~/.public-htmlTo set "permissions" correctly so that your file is visible to the world:
% fixpub -oThen use your web browser to visit:
http://maps.live.com/?mapurl=http://www.cs.uiowa.edu/~hawkid/graph.kmland, if your KML file is correct, you should see a map of the locations with shortest paths displayed. The equivalent magic for Google maps should be:
http://maps.google.com/maps?q=http://www.cs.uiowa.edu/~hawkid/graph.kmlWith Google maps, I find it easier to just type the URL
http://www.cs.uiowa.edu/~hawkid/graph.kmlin the search box. Finally, these KML files can also be viewed in Google Earth. In fact, if you have Google Earth on your personal computer and try to open a KML file by clicking on it, it will by default open in Google Earth and visualize it, more or less, in the same way as Google maps.