template<typename BGR>
class lemon::BpGraphWriter< BGR >
This utility writes an LGF file.
It can be used almost the same way as GraphWriter
, but it reads the red and blue nodes from separate sections, and these sections can contain different set of maps.
The red and blue node maps are written to the corresponding sections. The node maps are written to both of these sections with the same map name.
|
| BpGraphWriter (const BGR &graph, std::ostream &os=std::cout) |
| Constructor. More...
|
|
| BpGraphWriter (const BGR &graph, const std::string &fn) |
| Constructor. More...
|
|
| BpGraphWriter (const BGR &graph, const char *fn) |
| Constructor. More...
|
|
| ~BpGraphWriter () |
| Destructor.
|
|
|
template<typename Map > |
BpGraphWriter & | nodeMap (const std::string &caption, const Map &map) |
| Node map writing rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphWriter & | nodeMap (const std::string &caption, const Map &map, const Converter &converter=Converter()) |
| Node map writing rule. More...
|
|
template<typename Map > |
BpGraphWriter & | redNodeMap (const std::string &caption, const Map &map) |
| Red node map writing rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphWriter & | redNodeMap (const std::string &caption, const Map &map, const Converter &converter=Converter()) |
| Red node map writing rule. More...
|
|
template<typename Map > |
BpGraphWriter & | blueNodeMap (const std::string &caption, const Map &map) |
| Blue node map writing rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphWriter & | blueNodeMap (const std::string &caption, const Map &map, const Converter &converter=Converter()) |
| Blue node map writing rule. More...
|
|
template<typename Map > |
BpGraphWriter & | edgeMap (const std::string &caption, const Map &map) |
| Edge map writing rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphWriter & | edgeMap (const std::string &caption, const Map &map, const Converter &converter=Converter()) |
| Edge map writing rule. More...
|
|
template<typename Map > |
BpGraphWriter & | arcMap (const std::string &caption, const Map &map) |
| Arc map writing rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphWriter & | arcMap (const std::string &caption, const Map &map, const Converter &converter=Converter()) |
| Arc map writing rule. More...
|
|
template<typename Value > |
BpGraphWriter & | attribute (const std::string &caption, const Value &value) |
| Attribute writing rule. More...
|
|
template<typename Value , typename Converter > |
BpGraphWriter & | attribute (const std::string &caption, const Value &value, const Converter &converter=Converter()) |
| Attribute writing rule. More...
|
|
BpGraphWriter & | node (const std::string &caption, const Node &node) |
| Node writing rule. More...
|
|
BpGraphWriter & | redNode (const std::string &caption, const RedNode &node) |
| Red node writing rule. More...
|
|
BpGraphWriter & | blueNode (const std::string &caption, const BlueNode &node) |
| Blue node writing rule. More...
|
|
BpGraphWriter & | edge (const std::string &caption, const Edge &edge) |
| Edge writing rule. More...
|
|
BpGraphWriter & | arc (const std::string &caption, const Arc &arc) |
| Arc writing rule. More...
|
|
|
BpGraphWriter & | nodes (const std::string &caption) |
| Add an additional caption to the @red_nodes and @blue_nodes section. More...
|
|
BpGraphWriter & | edges (const std::string &caption) |
| Add an additional caption to the @edges section. More...
|
|
BpGraphWriter & | attributes (const std::string &caption) |
| Add an additional caption to the @attributes section. More...
|
|
|
BpGraphWriter & | skipNodes () |
| Skip writing the node set. More...
|
|
BpGraphWriter & | skipEdges () |
| Skip writing edge set. More...
|
|
|
void | run () |
| Start the batch processing. More...
|
|
std::ostream & | ostream () |
| Give back the stream of the writer. More...
|
|