lemon/lgf_writer.h
changeset 1204 736a341e604b
parent 1092 dceba191c00d
equal deleted inserted replaced
38:54bd352bbb60 39:6cf9fd7650cd
   406   /// the output stream. If the functor is not set, then a default
   406   /// the output stream. If the functor is not set, then a default
   407   /// conversion will be used. The \c attribute(), \c node() and \c
   407   /// conversion will be used. The \c attribute(), \c node() and \c
   408   /// arc() functions are used to add attribute writing rules.
   408   /// arc() functions are used to add attribute writing rules.
   409   ///
   409   ///
   410   ///\code
   410   ///\code
   411   /// DigraphWriter<DGR>(digraph, std::cout).
   411   /// DigraphWriter<DGR>(digraph, std::cout)
   412   ///   nodeMap("coordinates", coord_map).
   412   ///   .nodeMap("coordinates", coord_map)
   413   ///   nodeMap("size", size).
   413   ///   .nodeMap("size", size)
   414   ///   nodeMap("title", title).
   414   ///   .nodeMap("title", title)
   415   ///   arcMap("capacity", cap_map).
   415   ///   .arcMap("capacity", cap_map)
   416   ///   node("source", src).
   416   ///   .node("source", src)
   417   ///   node("target", trg).
   417   ///   .node("target", trg)
   418   ///   attribute("caption", caption).
   418   ///   .attribute("caption", caption)
   419   ///   run();
   419   ///   .run();
   420   ///\endcode
   420   ///\endcode
   421   ///
   421   ///
   422   ///
   422   ///
   423   /// By default, the writer does not write additional captions to the
   423   /// By default, the writer does not write additional captions to the
   424   /// sections, but they can be give as an optional parameter of
   424   /// sections, but they can be give as an optional parameter of
   959   ///\code
   959   ///\code
   960   ///ListDigraph digraph;
   960   ///ListDigraph digraph;
   961   ///ListDigraph::ArcMap<int> cap(digraph);
   961   ///ListDigraph::ArcMap<int> cap(digraph);
   962   ///ListDigraph::Node src, trg;
   962   ///ListDigraph::Node src, trg;
   963   ///  // Setting the capacity map and source and target nodes
   963   ///  // Setting the capacity map and source and target nodes
   964   ///digraphWriter(digraph, std::cout).
   964   ///digraphWriter(digraph, std::cout)
   965   ///  arcMap("capacity", cap).
   965   ///  .arcMap("capacity", cap)
   966   ///  node("source", src).
   966   ///  .node("source", src)
   967   ///  node("target", trg).
   967   ///  .node("target", trg)
   968   ///  run();
   968   ///  .run();
   969   ///\endcode
   969   ///\endcode
   970   ///
   970   ///
   971   /// For a complete documentation, please see the
   971   /// For a complete documentation, please see the
   972   /// \ref lemon::DigraphWriter "DigraphWriter"
   972   /// \ref lemon::DigraphWriter "DigraphWriter"
   973   /// class documentation.
   973   /// class documentation.
  1597   ///
  1597   ///
  1598   ///\code
  1598   ///\code
  1599   ///ListGraph graph;
  1599   ///ListGraph graph;
  1600   ///ListGraph::EdgeMap<int> weight(graph);
  1600   ///ListGraph::EdgeMap<int> weight(graph);
  1601   ///  // Setting the weight map
  1601   ///  // Setting the weight map
  1602   ///graphWriter(graph, std::cout).
  1602   ///graphWriter(graph, std::cout)
  1603   ///  edgeMap("weight", weight).
  1603   ///  .edgeMap("weight", weight)
  1604   ///  run();
  1604   ///  .run();
  1605   ///\endcode
  1605   ///\endcode
  1606   ///
  1606   ///
  1607   /// For a complete documentation, please see the
  1607   /// For a complete documentation, please see the
  1608   /// \ref lemon::GraphWriter "GraphWriter"
  1608   /// \ref lemon::GraphWriter "GraphWriter"
  1609   /// class documentation.
  1609   /// class documentation.
  2417   ///
  2417   ///
  2418   ///\code
  2418   ///\code
  2419   ///ListBpGraph graph;
  2419   ///ListBpGraph graph;
  2420   ///ListBpGraph::EdgeMap<int> weight(graph);
  2420   ///ListBpGraph::EdgeMap<int> weight(graph);
  2421   ///  // Setting the weight map
  2421   ///  // Setting the weight map
  2422   ///bpGraphWriter(graph, std::cout).
  2422   ///bpGraphWriter(graph, std::cout)
  2423   ///  edgeMap("weight", weight).
  2423   ///  .edgeMap("weight", weight)
  2424   ///  run();
  2424   ///  .run();
  2425   ///\endcode
  2425   ///\endcode
  2426   ///
  2426   ///
  2427   /// For a complete documentation, please see the
  2427   /// For a complete documentation, please see the
  2428   /// \ref lemon::BpGraphWriter "BpGraphWriter"
  2428   /// \ref lemon::BpGraphWriter "BpGraphWriter"
  2429   /// class documentation.
  2429   /// class documentation.