template<typename BGR>
class lemon::BpGraphReader< BGR >
This utility reads an LGF file.
It can be used almost the same way as GraphReader
, 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 read from the corresponding sections. If a map is defined with the same name in both of these sections, then it can be read as a node map.
|
| BpGraphReader (BGR &graph, std::istream &is=std::cin) |
| Constructor. More...
|
|
| BpGraphReader (BGR &graph, const std::string &fn) |
| Constructor. More...
|
|
| BpGraphReader (BGR &graph, const char *fn) |
| Constructor. More...
|
|
| ~BpGraphReader () |
| Destructor.
|
|
|
template<typename Map > |
BpGraphReader & | nodeMap (const std::string &caption, Map &map) |
| Node map reading rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphReader & | nodeMap (const std::string &caption, Map &map, const Converter &converter=Converter()) |
| Node map reading rule. More...
|
|
template<typename Map > |
BpGraphReader & | redNodeMap (const std::string &caption, Map &map) |
| Add a red node map reading rule to the reader.
|
|
template<typename Map , typename Converter > |
BpGraphReader & | redNodeMap (const std::string &caption, Map &map, const Converter &converter=Converter()) |
| Red node map reading rule. More...
|
|
template<typename Map > |
BpGraphReader & | blueNodeMap (const std::string &caption, Map &map) |
| Add a blue node map reading rule to the reader.
|
|
template<typename Map , typename Converter > |
BpGraphReader & | blueNodeMap (const std::string &caption, Map &map, const Converter &converter=Converter()) |
| Blue node map reading rule. More...
|
|
template<typename Map > |
BpGraphReader & | edgeMap (const std::string &caption, Map &map) |
| Edge map reading rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphReader & | edgeMap (const std::string &caption, Map &map, const Converter &converter=Converter()) |
| Edge map reading rule. More...
|
|
template<typename Map > |
BpGraphReader & | arcMap (const std::string &caption, Map &map) |
| Arc map reading rule. More...
|
|
template<typename Map , typename Converter > |
BpGraphReader & | arcMap (const std::string &caption, Map &map, const Converter &converter=Converter()) |
| Arc map reading rule. More...
|
|
template<typename Value > |
BpGraphReader & | attribute (const std::string &caption, Value &value) |
| Attribute reading rule. More...
|
|
template<typename Value , typename Converter > |
BpGraphReader & | attribute (const std::string &caption, Value &value, const Converter &converter=Converter()) |
| Attribute reading rule. More...
|
|
BpGraphReader & | node (const std::string &caption, Node &node) |
| Node reading rule. More...
|
|
BpGraphReader & | redNode (const std::string &caption, RedNode &node) |
| Red node reading rule. More...
|
|
BpGraphReader & | blueNode (const std::string &caption, BlueNode &node) |
| Blue node reading rule. More...
|
|
BpGraphReader & | edge (const std::string &caption, Edge &edge) |
| Edge reading rule. More...
|
|
BpGraphReader & | arc (const std::string &caption, Arc &arc) |
| Arc reading rule. More...
|
|
|
BpGraphReader & | nodes (const std::string &caption) |
| Set @nodes section to be read. More...
|
|
BpGraphReader & | edges (const std::string &caption) |
| Set @edges section to be read. More...
|
|
BpGraphReader & | attributes (const std::string &caption) |
| Set @attributes section to be read. More...
|
|
|
template<typename Map > |
BpGraphReader & | useNodes (const Map &map) |
| Use previously constructed node set. More...
|
|
template<typename Map , typename Converter > |
BpGraphReader & | useNodes (const Map &map, const Converter &converter=Converter()) |
| Use previously constructed node set. More...
|
|
template<typename Map > |
BpGraphReader & | useEdges (const Map &map) |
| Use previously constructed edge set. More...
|
|
template<typename Map , typename Converter > |
BpGraphReader & | useEdges (const Map &map, const Converter &converter=Converter()) |
| Use previously constructed edge set. More...
|
|
BpGraphReader & | skipNodes () |
| Skip the reading of node section. More...
|
|
BpGraphReader & | skipEdges () |
| Skip the reading of edge section. More...
|
|
|
void | run () |
| Start the batch processing. More...
|
|