Don't abort if opening a file to export to graphviz fails

This commit is contained in:
Tiago Gomes
2012-12-20 17:11:11 +00:00
parent af8497af6e
commit 2ca31ca14a
5 changed files with 12 additions and 15 deletions

View File

@@ -81,7 +81,7 @@ BayesBallGraph::exportToGraphViz (const char* fileName)
if (!out.is_open()) {
cerr << "error: cannot open file to write at " ;
cerr << "BayesBallGraph::exportToDotFile()" << endl;
abort();
return;
}
out << "digraph {" << endl;
out << "ranksep=1" << endl;