Changeset 1901:723b2b81d900 in lemon-0.x for lemon/graph_writer.h
- Timestamp:
- 01/24/06 17:07:38 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2476
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/graph_writer.h
r1875 r1901 55 55 /// command in the \c GraphWriter. You should give as parameter 56 56 /// the name of the map and the map object. The NodeMap writing 57 /// command with name " id" should write a unique map because it58 /// is regarded as IDmap (such a map is essential if the graph has edges).59 /// 60 /// \code 61 /// IdMap<ListGraph, Node> node IdMap;62 /// writer.writeNodeMap(" id", nodeIdMap);57 /// command with name "label" should write a unique map because it 58 /// is regarded as label map (such a map is essential if the graph has edges). 59 /// 60 /// \code 61 /// IdMap<ListGraph, Node> nodeLabelMap; 62 /// writer.writeNodeMap("label", nodeLabelMap); 63 63 /// 64 64 /// writer.writeNodeMap("coords", coords); … … 254 254 } 255 255 256 /// \brief Write the idof the given node.257 /// 258 /// It writes the id of the given node. If there was written an "id"256 /// \brief Write the label of the given node. 257 /// 258 /// It writes the label of the given node. If there was written an "label" 259 259 /// named node map then it will write the map value belonging to the node. 260 void write Id(std::ostream& os, const Node& item) const {261 nodeset_writer.write Id(os, item);260 void writeLabel(std::ostream& os, const Node& item) const { 261 nodeset_writer.writeLabel(os, item); 262 262 } 263 263 264 /// \brief Write the idof the given edge.265 /// 266 /// It writes the id of the given edge. If there was written an "id"264 /// \brief Write the label of the given edge. 265 /// 266 /// It writes the label of the given edge. If there was written an "label" 267 267 /// named edge map then it will write the map value belonging to the edge. 268 void write Id(std::ostream& os, const Edge& item) const {269 edgeset_writer.write Id(os, item);268 void writeLabel(std::ostream& os, const Edge& item) const { 269 edgeset_writer.writeLabel(os, item); 270 270 } 271 271 … … 328 328 /// command in the \c UndirGraphWriter. You should give as parameter 329 329 /// the name of the map and the map object. The NodeMap writing 330 /// command with name " id" should write a unique map because it331 /// is regarded as IDmap.332 /// 333 /// \code 334 /// IdMap<UndirListGraph, Node> node IdMap;335 /// writer.writeNodeMap(" id", nodeIdMap);330 /// command with name "label" should write a unique map because it 331 /// is regarded as label map. 332 /// 333 /// \code 334 /// IdMap<UndirListGraph, Node> nodeLabelMap; 335 /// writer.writeNodeMap("label", nodeLabelMap); 336 336 /// 337 337 /// writer.writeNodeMap("coords", coords); … … 562 562 } 563 563 564 /// \brief Write the idof the given node.565 /// 566 /// It writes the id of the given node. If there was written an "id"564 /// \brief Write the label of the given node. 565 /// 566 /// It writes the label of the given node. If there was written an "label" 567 567 /// named node map then it will write the map value belonging to the node. 568 void write Id(std::ostream& os, const Node& item) const {569 nodeset_writer.write Id(os, item);568 void writeLabel(std::ostream& os, const Node& item) const { 569 nodeset_writer.writeLabel(os, item); 570 570 } 571 571 572 /// \brief Write the idof the given edge.573 /// 574 /// It writes the id of the given edge. If there was written an "id"572 /// \brief Write the label of the given edge. 573 /// 574 /// It writes the label of the given edge. If there was written an "label" 575 575 /// named edge map then it will write the map value belonging to the edge. 576 void write Id(std::ostream& os, const Edge& item) const {577 undir_edgeset_writer.write Id(os, item);576 void writeLabel(std::ostream& os, const Edge& item) const { 577 undir_edgeset_writer.writeLabel(os, item); 578 578 } 579 579 580 /// \brief Write the idof the given undirected edge.581 /// 582 /// It writes the idof the given undirected edge. If there was written583 /// an " id" named edge map then it will write the map value belonging to580 /// \brief Write the label of the given undirected edge. 581 /// 582 /// It writes the label of the given undirected edge. If there was written 583 /// an "label" named edge map then it will write the map value belonging to 584 584 /// the edge. 585 void write Id(std::ostream& os, const UndirEdge& item) const {586 undir_edgeset_writer.write Id(os, item);585 void writeLabel(std::ostream& os, const UndirEdge& item) const { 586 undir_edgeset_writer.writeLabel(os, item); 587 587 } 588 588
Note: See TracChangeset
for help on using the changeset viewer.