#include <LEDA/graphics/graphwin.h>
#include <LEDA/graph/graph_alg.h>

using namespace leda;

using std::cout;
using std::endl;

int main()
{
  GraphWin gw("Leda Graph Editor");

  graph& G = gw.get_graph();

  gw.display(window::center,window::center);

  while (gw.edit())
  { if (PLANAR(G))
       cout << "This graph is planar." << endl;
    else
       cout << "This graph is non-planar." << endl;
   }

  return 0;
}
