the global locale was generating bad dot files. Specifically, the node numbers had comma separators in them (like 1,234 rather than 1234). The attached file simply forces the stringstreams used to build up the dot file to use the "C" locale."