///////////////////////////////////////////////////////////////// // GraphIO.cpp - reads and writes directed graph structures // // ver 1.0 // // ----------------------------------------------------------- // // copyright © Jim Fawcett, 2012 // // All rights granted provided that this notice is retained // // ----------------------------------------------------------- // // Jim Fawcett, CST 4-187, Syracuse University, 315 443 3948 // // Summer Projects, 2012 // // Win7, Visual Studio 2010 // ///////////////////////////////////////////////////////////////// #include "GraphIO.h" #ifdef TEST_GRAPHIO using namespace DirectedGraph; int main() { std::cout << "\n Demonstrates Reading and Writing Directed Graphs from/to files"; std::cout << "\n ================================================================"; Graph g; GraphIO gio; gio.ReadGraph(g, "TestGraphIn.xml"); Display display(g); foreach(g, display); std::cout << "\n"; gio.WriteGraph(g, "TestGraphOut.xml"); std::cout << "\n\n"; } #endif