main.cpp 420 Bytes
#include "stdafx.h"
#include "PaperGraphWidget.h"
#include "MainWindow.h"

//const char* PAPER_FILENAME = "dblp-paper.txt";

int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
	
	MainWindow m;

	try {
		ifstream fin(PAPER_FILENAME);
		m.print_graph(fin);
		fin.close();
	} catch (const std::exception& e) {
		qDebug() << "Error: " << e.what();
		return EXIT_FAILURE;
	}

	m.show();

	return app.exec();
}