449 /// multiple map objects at the same time. The \c attribute(), \c |
449 /// multiple map objects at the same time. The \c attribute(), \c |
450 /// node() and \c arc() functions are used to add attribute reading |
450 /// node() and \c arc() functions are used to add attribute reading |
451 /// rules. |
451 /// rules. |
452 /// |
452 /// |
453 ///\code |
453 ///\code |
454 /// DigraphReader<DGR>(digraph, std::cin). |
454 /// DigraphReader<DGR>(digraph, std::cin) |
455 /// nodeMap("coordinates", coord_map). |
455 /// .nodeMap("coordinates", coord_map) |
456 /// arcMap("capacity", cap_map). |
456 /// .arcMap("capacity", cap_map) |
457 /// node("source", src). |
457 /// .node("source", src) |
458 /// node("target", trg). |
458 /// .node("target", trg) |
459 /// attribute("caption", caption). |
459 /// .attribute("caption", caption) |
460 /// run(); |
460 /// .run(); |
461 ///\endcode |
461 ///\endcode |
462 /// |
462 /// |
463 /// By default, the reader uses the first section in the file of the |
463 /// By default, the reader uses the first section in the file of the |
464 /// proper type. If a section has an optional name, then it can be |
464 /// proper type. If a section has an optional name, then it can be |
465 /// selected for reading by giving an optional name parameter to the |
465 /// selected for reading by giving an optional name parameter to the |
1244 /// |
1244 /// |
1245 ///\code |
1245 ///\code |
1246 ///ListDigraph digraph; |
1246 ///ListDigraph digraph; |
1247 ///ListDigraph::ArcMap<int> cap(digraph); |
1247 ///ListDigraph::ArcMap<int> cap(digraph); |
1248 ///ListDigraph::Node src, trg; |
1248 ///ListDigraph::Node src, trg; |
1249 ///digraphReader(digraph, std::cin). |
1249 ///digraphReader(digraph, std::cin) |
1250 /// arcMap("capacity", cap). |
1250 /// .arcMap("capacity", cap) |
1251 /// node("source", src). |
1251 /// .node("source", src) |
1252 /// node("target", trg). |
1252 /// .node("target", trg) |
1253 /// run(); |
1253 /// .run(); |
1254 ///\endcode |
1254 ///\endcode |
1255 /// |
1255 /// |
1256 /// For a complete documentation, please see the |
1256 /// For a complete documentation, please see the |
1257 /// \ref lemon::DigraphReader "DigraphReader" |
1257 /// \ref lemon::DigraphReader "DigraphReader" |
1258 /// class documentation. |
1258 /// class documentation. |
2121 /// graph can be read with the following code: |
2121 /// graph can be read with the following code: |
2122 /// |
2122 /// |
2123 ///\code |
2123 ///\code |
2124 ///ListGraph graph; |
2124 ///ListGraph graph; |
2125 ///ListGraph::EdgeMap<int> weight(graph); |
2125 ///ListGraph::EdgeMap<int> weight(graph); |
2126 ///graphReader(graph, std::cin). |
2126 ///graphReader(graph, std::cin) |
2127 /// edgeMap("weight", weight). |
2127 /// .edgeMap("weight", weight) |
2128 /// run(); |
2128 /// .run(); |
2129 ///\endcode |
2129 ///\endcode |
2130 /// |
2130 /// |
2131 /// For a complete documentation, please see the |
2131 /// For a complete documentation, please see the |
2132 /// \ref lemon::GraphReader "GraphReader" |
2132 /// \ref lemon::GraphReader "GraphReader" |
2133 /// class documentation. |
2133 /// class documentation. |
3189 /// graph can be read with the following code: |
3189 /// graph can be read with the following code: |
3190 /// |
3190 /// |
3191 ///\code |
3191 ///\code |
3192 ///ListBpGraph graph; |
3192 ///ListBpGraph graph; |
3193 ///ListBpGraph::EdgeMap<int> weight(graph); |
3193 ///ListBpGraph::EdgeMap<int> weight(graph); |
3194 ///bpGraphReader(graph, std::cin). |
3194 ///bpGraphReader(graph, std::cin) |
3195 /// edgeMap("weight", weight). |
3195 /// .edgeMap("weight", weight) |
3196 /// run(); |
3196 /// .run(); |
3197 ///\endcode |
3197 ///\endcode |
3198 /// |
3198 /// |
3199 /// For a complete documentation, please see the |
3199 /// For a complete documentation, please see the |
3200 /// \ref lemon::BpGraphReader "BpGraphReader" |
3200 /// \ref lemon::BpGraphReader "BpGraphReader" |
3201 /// class documentation. |
3201 /// class documentation. |