/* This code only tests the graph for planarity * */ #include #include #include using namespace ogdf; int main(int argc, char* argv[]) { string inputFile = argv[1]; Graph G; if (!GraphIO::read(G, inputFile, GraphIO::readGML)) { std::cerr << "Could not read input.gml" << std::endl; return 1; } // print after input // graphPrinter(G); std::cout << ogdf::isPlanar(G) << std::endl; return 0; }