diff -r b16ca599472f -r 723b2b81d900 lemon/graph_writer.h --- a/lemon/graph_writer.h Thu Jan 19 16:56:39 2006 +0000 +++ b/lemon/graph_writer.h Tue Jan 24 16:07:38 2006 +0000 @@ -54,12 +54,12 @@ /// The \c writeNodeMap() function declares a \c NodeMap writing /// command in the \c GraphWriter. You should give as parameter /// the name of the map and the map object. The NodeMap writing - /// command with name "id" should write a unique map because it - /// is regarded as ID map (such a map is essential if the graph has edges). + /// command with name "label" should write a unique map because it + /// is regarded as label map (such a map is essential if the graph has edges). /// /// \code - /// IdMap nodeIdMap; - /// writer.writeNodeMap("id", nodeIdMap); + /// IdMap nodeLabelMap; + /// writer.writeNodeMap("label", nodeLabelMap); /// /// writer.writeNodeMap("coords", coords); /// writer.writeNodeMap("color", colorMap); @@ -253,20 +253,20 @@ writer->run(); } - /// \brief Write the id of the given node. + /// \brief Write the label of the given node. /// - /// It writes the id of the given node. If there was written an "id" + /// It writes the label of the given node. If there was written an "label" /// named node map then it will write the map value belonging to the node. - void writeId(std::ostream& os, const Node& item) const { - nodeset_writer.writeId(os, item); + void writeLabel(std::ostream& os, const Node& item) const { + nodeset_writer.writeLabel(os, item); } - /// \brief Write the id of the given edge. + /// \brief Write the label of the given edge. /// - /// It writes the id of the given edge. If there was written an "id" + /// It writes the label of the given edge. If there was written an "label" /// named edge map then it will write the map value belonging to the edge. - void writeId(std::ostream& os, const Edge& item) const { - edgeset_writer.writeId(os, item); + void writeLabel(std::ostream& os, const Edge& item) const { + edgeset_writer.writeLabel(os, item); } private: @@ -327,12 +327,12 @@ /// The \c writeNodeMap() function declares a \c NodeMap writing /// command in the \c UndirGraphWriter. You should give as parameter /// the name of the map and the map object. The NodeMap writing - /// command with name "id" should write a unique map because it - /// is regarded as ID map. + /// command with name "label" should write a unique map because it + /// is regarded as label map. /// /// \code - /// IdMap nodeIdMap; - /// writer.writeNodeMap("id", nodeIdMap); + /// IdMap nodeLabelMap; + /// writer.writeNodeMap("label", nodeLabelMap); /// /// writer.writeNodeMap("coords", coords); /// writer.writeNodeMap("color", colorMap); @@ -561,29 +561,29 @@ writer->run(); } - /// \brief Write the id of the given node. + /// \brief Write the label of the given node. /// - /// It writes the id of the given node. If there was written an "id" + /// It writes the label of the given node. If there was written an "label" /// named node map then it will write the map value belonging to the node. - void writeId(std::ostream& os, const Node& item) const { - nodeset_writer.writeId(os, item); + void writeLabel(std::ostream& os, const Node& item) const { + nodeset_writer.writeLabel(os, item); } - /// \brief Write the id of the given edge. + /// \brief Write the label of the given edge. /// - /// It writes the id of the given edge. If there was written an "id" + /// It writes the label of the given edge. If there was written an "label" /// named edge map then it will write the map value belonging to the edge. - void writeId(std::ostream& os, const Edge& item) const { - undir_edgeset_writer.writeId(os, item); + void writeLabel(std::ostream& os, const Edge& item) const { + undir_edgeset_writer.writeLabel(os, item); } - /// \brief Write the id of the given undirected edge. + /// \brief Write the label of the given undirected edge. /// - /// It writes the id of the given undirected edge. If there was written - /// an "id" named edge map then it will write the map value belonging to + /// It writes the label of the given undirected edge. If there was written + /// an "label" named edge map then it will write the map value belonging to /// the edge. - void writeId(std::ostream& os, const UndirEdge& item) const { - undir_edgeset_writer.writeId(os, item); + void writeLabel(std::ostream& os, const UndirEdge& item) const { + undir_edgeset_writer.writeLabel(os, item); }