COIN-OR::LEMON - Graph Library

Changeset 1901:723b2b81d900 in lemon-0.x for lemon/graph_writer.h


Ignore:
Timestamp:
01/24/06 17:07:38 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2476
Message:

Lemon Graph Format uses label instead of id named map.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_writer.h

    r1875 r1901  
    5555  /// command in the \c GraphWriter. You should give as parameter
    5656  /// the name of the map and the map object. The NodeMap writing
    57   /// command with name "id" should write a unique map because it
    58   /// is regarded as ID map (such a map is essential if the graph has edges).
    59   ///
    60   /// \code
    61   /// IdMap<ListGraph, Node> nodeIdMap;
    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);
    6363  ///
    6464  /// writer.writeNodeMap("coords", coords);
     
    254254    }
    255255
    256     /// \brief Write the id of 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"
    259259    /// named node map then it will write the map value belonging to the node.
    260     void writeId(std::ostream& os, const Node& item) const {
    261       nodeset_writer.writeId(os, item);
     260    void writeLabel(std::ostream& os, const Node& item) const {
     261      nodeset_writer.writeLabel(os, item);
    262262    }
    263263
    264     /// \brief Write the id of 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"
    267267    /// named edge map then it will write the map value belonging to the edge.
    268     void writeId(std::ostream& os, const Edge& item) const {
    269       edgeset_writer.writeId(os, item);
     268    void writeLabel(std::ostream& os, const Edge& item) const {
     269      edgeset_writer.writeLabel(os, item);
    270270    }
    271271
     
    328328  /// command in the \c UndirGraphWriter. You should give as parameter
    329329  /// the name of the map and the map object. The NodeMap writing
    330   /// command with name "id" should write a unique map because it
    331   /// is regarded as ID map.
    332   ///
    333   /// \code
    334   /// IdMap<UndirListGraph, Node> nodeIdMap;
    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);
    336336  ///
    337337  /// writer.writeNodeMap("coords", coords);
     
    562562    }
    563563
    564     /// \brief Write the id of 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"
    567567    /// named node map then it will write the map value belonging to the node.
    568     void writeId(std::ostream& os, const Node& item) const {
    569       nodeset_writer.writeId(os, item);
     568    void writeLabel(std::ostream& os, const Node& item) const {
     569      nodeset_writer.writeLabel(os, item);
    570570    }
    571571
    572     /// \brief Write the id of 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"
    575575    /// named edge map then it will write the map value belonging to the edge.
    576     void writeId(std::ostream& os, const Edge& item) const {
    577       undir_edgeset_writer.writeId(os, item);
     576    void writeLabel(std::ostream& os, const Edge& item) const {
     577      undir_edgeset_writer.writeLabel(os, item);
    578578    }
    579579
    580     /// \brief Write the id of the given undirected edge.
    581     ///
    582     /// It writes the id of the given undirected edge. If there was written
    583     /// an "id" named edge map then it will write the map value belonging to
     580    /// \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
    584584    /// the edge.
    585     void writeId(std::ostream& os, const UndirEdge& item) const {
    586       undir_edgeset_writer.writeId(os, item);
     585    void writeLabel(std::ostream& os, const UndirEdge& item) const {
     586      undir_edgeset_writer.writeLabel(os, item);
    587587    }
    588588
Note: See TracChangeset for help on using the changeset viewer.