equal
deleted
inserted
replaced
91 calls the \c run() method that executes all the given commands. |
91 calls the \c run() method that executes all the given commands. |
92 |
92 |
93 \subsection write Writing a graph |
93 \subsection write Writing a graph |
94 |
94 |
95 The \c GraphWriter class provides the graph output. To write a graph |
95 The \c GraphWriter class provides the graph output. To write a graph |
96 you should first give writing commands for the writer. You can declare |
96 you should first give writing commands to the writer. You can declare |
97 write command as \c NodeMap or \c EdgeMap writing and labeled Node and |
97 write command as \c NodeMap or \c EdgeMap writing and labeled Node and |
98 Edge writing. |
98 Edge writing. |
99 |
99 |
100 \code |
100 \code |
101 GraphWriter<ListGraph> writer(std::cout, graph); |
101 GraphWriter<ListGraph> writer(std::cout, graph); |
246 ... |
246 ... |
247 reader.readNodeMap<LengthReader>("strings", lengthMap); |
247 reader.readNodeMap<LengthReader>("strings", lengthMap); |
248 \endcode |
248 \endcode |
249 |
249 |
250 The global functionality of the reader class can be changed by giving a |
250 The global functionality of the reader class can be changed by giving a |
251 special template parameter for the GraphReader class. By default, the |
251 special template parameter to the GraphReader class. By default, the |
252 template parameter is \c DefaultReaderTraits. A reader traits class |
252 template parameter is \c DefaultReaderTraits. A reader traits class |
253 should provide an inner template class Reader for each type, and an |
253 should provide an inner template class Reader for each type, and an |
254 DefaultReader for skipping a value. |
254 DefaultReader for skipping a value. |
255 |
255 |
256 The specialization of the writing should be very similar to the reading. |
256 The specialization of the writing should be very similar to the reading. |