From 750ab37457230c64588f94b1308b34e2622fc0de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 4 Nov 2023 19:44:42 +0100 Subject: [PATCH] remove comments in output routine --- graph.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/graph.cpp b/graph.cpp index 939e092..9cf3fa2 100644 --- a/graph.cpp +++ b/graph.cpp @@ -150,10 +150,7 @@ std::ostream & operator<<(std::ostream & output, Graph const & graph) { // We use std::endl to write new lines here. // If you prefer the new line character, \n on linux, that one works fine, too. - output << "c Recall each line starting with c encodes a comment in DIMACS format!" << std::endl - << "c The first non-comment line specifies the number of nodes and edges:" << std::endl - << "p edge " << graph.num_nodes() << " " << graph.num_edges() << std::endl - << "c Each of the remaining non-comment lines specifys an edge by two nodes:" << std::endl; + output << "p edge " << graph.num_nodes() << " " << graph.num_edges() << std::endl; // We will need the id of the node we are at, so we write a plain old loop here. for (NodeId node_id = 0; node_id < graph.num_nodes(); ++node_id) @@ -171,7 +168,6 @@ std::ostream & operator<<(std::ostream & output, Graph const & graph) } } } - output << "c If you use this graph class in your solution, you should probably remove this comments!" << std::endl; // Streams sometimes buffer their output. // Once one is done with some output routine, it can make sense to flush them,