Changeset 1333:2640cf6547ff in lemon-0.x for doc/graph_io.dox
- Timestamp:
- 04/09/05 21:35:33 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1772
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/graph_io.dox
r1118 r1333 1 1 namespace lemon { 2 2 /*! 3 4 3 5 4 … … 21 20 The next line contains the names of the maps separated by whitespaces. 22 21 Each following line describes a node in the graph, it contains 23 in the right order the values of the maps. The first mapshould contain24 unique values because it regarded as I d-map.22 in the right order the values of the maps. The map named "id" should contain 23 unique values because it regarded as ID-map. 25 24 26 25 \code … … 36 35 The next line contains the whitespace separated list of names of the map. 37 36 Each of the next lines describes one edge. The first two elements in the line 38 are the ID of the source and target node as they occur in the firstnode map.37 are the ID of the source and target node as they occur in the ID node map. 39 38 40 39 \code … … 46 45 \endcode 47 46 48 The next section contains <em>labele snodes</em> (i.e. nodes having a special47 The next section contains <em>labeled nodes</em> (i.e. nodes having a special 49 48 label on them). The section starts with 50 49 \c \@nodes. Each of the next lines contains a label for a node in the graph 51 and then the ID described in the first column in thenodeset.50 and then the ID described in the nodeset. 52 51 53 52 \code … … 57 56 \endcode 58 57 59 The last section describes the <em>labeles edges</em> 60 (i.e. edges having a special 61 label on them). It starts with \c \@edges 58 The last section describes the <em>labeled edges</em> 59 (i.e. edges having a special label on them). It starts with \c \@edges 62 60 and then each line contains the name of the edge and the ID. 63 61 … … 89 87 90 88 \code 91 GraphWriter<ListGraph> writer( graph);89 GraphWriter<ListGraph> writer(std::cout, graph); 92 90 \endcode 93 91 94 92 The \c addNodeMap() function declares a \c NodeMap writing command in the 95 93 \c GraphWriter. You should give as parameter the name of the map and the map 96 object. The first NodeMap writing command should write a unique map because97 it is regarded as ID map.94 object. The NodeMap writing command with name "id" should write a 95 unique map because it is regarded as ID map. 98 96 99 97 \see IdMap, DescriptorMap … … 109 107 110 108 With the \c addEdgeMap() member function you can give an edge map 111 writing command similar to the NodeMaps. The first map writing command should 112 write unique map. 109 writing command similar to the NodeMaps. 113 110 114 111 \see IdMap, DescriptorMap … … 133 130 134 131 After you give all write commands you must call the \c run() member 135 function, which execute all the write commands.132 function, which execute all the writer commands. 136 133 137 134 \code … … 152 149 153 150 \code 154 GraphReader<ListGraph> reader( graph);151 GraphReader<ListGraph> reader(std::cin, graph); 155 152 \endcode 156 153 … … 207 204 template parameters to specialize it. When you give a reading 208 205 command for a map you can give a Reader type as template parameter. 209 With this template parameter you can control how does read the Reader206 With this template parameter you can control how the Reader reads 210 207 a value from the stream. 211 208 … … 245 242 The specialization of the writing should be very similar to the reading. 246 243 247 244 \author Balazs Dezso 248 245 */ 249 246 }
Note: See TracChangeset
for help on using the changeset viewer.