Managed to get a scrappy graph rendering; added stuff to improve the map, but that doesn't work yet.