# HG changeset patch # User Peter Kovacs # Date 1507328359 -7200 # Node ID 7d32a2d6ed595f72109e09f501bb02bd6f22560a # Parent bc571f16e1e998989a2d6357b304c78dd27d5fd7 Change the style of code examples in API doc diff -r bc571f16e1e9 -r 7d32a2d6ed59 lemon/lgf_reader.h --- a/lemon/lgf_reader.h Tue Sep 19 15:23:43 2017 +0200 +++ b/lemon/lgf_reader.h Sat Oct 07 00:19:19 2017 +0200 @@ -451,13 +451,13 @@ /// rules. /// ///\code - /// DigraphReader(digraph, std::cin). - /// nodeMap("coordinates", coord_map). - /// arcMap("capacity", cap_map). - /// node("source", src). - /// node("target", trg). - /// attribute("caption", caption). - /// run(); + /// DigraphReader(digraph, std::cin) + /// .nodeMap("coordinates", coord_map) + /// .arcMap("capacity", cap_map) + /// .node("source", src) + /// .node("target", trg) + /// .attribute("caption", caption) + /// .run(); ///\endcode /// /// By default, the reader uses the first section in the file of the @@ -1246,11 +1246,11 @@ ///ListDigraph digraph; ///ListDigraph::ArcMap cap(digraph); ///ListDigraph::Node src, trg; - ///digraphReader(digraph, std::cin). - /// arcMap("capacity", cap). - /// node("source", src). - /// node("target", trg). - /// run(); + ///digraphReader(digraph, std::cin) + /// .arcMap("capacity", cap) + /// .node("source", src) + /// .node("target", trg) + /// .run(); ///\endcode /// /// For a complete documentation, please see the @@ -2123,9 +2123,9 @@ ///\code ///ListGraph graph; ///ListGraph::EdgeMap weight(graph); - ///graphReader(graph, std::cin). - /// edgeMap("weight", weight). - /// run(); + ///graphReader(graph, std::cin) + /// .edgeMap("weight", weight) + /// .run(); ///\endcode /// /// For a complete documentation, please see the @@ -3191,9 +3191,9 @@ ///\code ///ListBpGraph graph; ///ListBpGraph::EdgeMap weight(graph); - ///bpGraphReader(graph, std::cin). - /// edgeMap("weight", weight). - /// run(); + ///bpGraphReader(graph, std::cin) + /// .edgeMap("weight", weight) + /// .run(); ///\endcode /// /// For a complete documentation, please see the diff -r bc571f16e1e9 -r 7d32a2d6ed59 lemon/lgf_writer.h --- a/lemon/lgf_writer.h Tue Sep 19 15:23:43 2017 +0200 +++ b/lemon/lgf_writer.h Sat Oct 07 00:19:19 2017 +0200 @@ -408,15 +408,15 @@ /// arc() functions are used to add attribute writing rules. /// ///\code - /// DigraphWriter(digraph, std::cout). - /// nodeMap("coordinates", coord_map). - /// nodeMap("size", size). - /// nodeMap("title", title). - /// arcMap("capacity", cap_map). - /// node("source", src). - /// node("target", trg). - /// attribute("caption", caption). - /// run(); + /// DigraphWriter(digraph, std::cout) + /// .nodeMap("coordinates", coord_map) + /// .nodeMap("size", size) + /// .nodeMap("title", title) + /// .arcMap("capacity", cap_map) + /// .node("source", src) + /// .node("target", trg) + /// .attribute("caption", caption) + /// .run(); ///\endcode /// /// @@ -961,11 +961,11 @@ ///ListDigraph::ArcMap cap(digraph); ///ListDigraph::Node src, trg; /// // Setting the capacity map and source and target nodes - ///digraphWriter(digraph, std::cout). - /// arcMap("capacity", cap). - /// node("source", src). - /// node("target", trg). - /// run(); + ///digraphWriter(digraph, std::cout) + /// .arcMap("capacity", cap) + /// .node("source", src) + /// .node("target", trg) + /// .run(); ///\endcode /// /// For a complete documentation, please see the @@ -1599,9 +1599,9 @@ ///ListGraph graph; ///ListGraph::EdgeMap weight(graph); /// // Setting the weight map - ///graphWriter(graph, std::cout). - /// edgeMap("weight", weight). - /// run(); + ///graphWriter(graph, std::cout) + /// .edgeMap("weight", weight) + /// .run(); ///\endcode /// /// For a complete documentation, please see the @@ -2419,9 +2419,9 @@ ///ListBpGraph graph; ///ListBpGraph::EdgeMap weight(graph); /// // Setting the weight map - ///bpGraphWriter(graph, std::cout). - /// edgeMap("weight", weight). - /// run(); + ///bpGraphWriter(graph, std::cout) + /// .edgeMap("weight", weight) + /// .run(); ///\endcode /// /// For a complete documentation, please see the