This group contains methods for reading and writing LEMON Graph Format.
Classes | |
| class | DigraphReader< DGR > |
| LGF reader for directed graphs More... | |
| class | GraphReader< GR > |
| LGF reader for undirected graphs More... | |
| class | BpGraphReader< BGR > |
| LGF reader for bipartite graphs More... | |
| class | SectionReader |
| Section reader class. More... | |
| class | LgfContents |
| Reader for the contents of the LGF file. More... | |
| class | DigraphWriter< DGR > |
| LGF writer for directed graphs More... | |
| class | GraphWriter< GR > |
| LGF writer for undirected graphs More... | |
| class | BpGraphWriter< BGR > |
| LGF writer for undirected bipartite graphs More... | |
| class | SectionWriter |
| Section writer class. More... | |
Files | |
| file | lgf_reader.h |
| LEMON Graph Format reader. | |
| file | lgf_writer.h |
| LEMON Graph Format writer. | |
Functions | |
| template<typename TDGR > | |
| DigraphReader< TDGR > | digraphReader (TDGR &digraph, std::istream &is) |
| Return a DigraphReader class. More... | |
| template<typename TGR > | |
| GraphReader< TGR > | graphReader (TGR &graph, std::istream &is) |
| Return a GraphReader class. More... | |
| template<typename TBGR > | |
| BpGraphReader< TBGR > | bpGraphReader (TBGR &graph, std::istream &is) |
| Return a BpGraphReader class. More... | |
| SectionReader | sectionReader (std::istream &is) |
| Return a SectionReader class. More... | |
| template<typename TDGR > | |
| DigraphWriter< TDGR > | digraphWriter (const TDGR &digraph, std::ostream &os) |
| Return a DigraphWriter class. More... | |
| template<typename TGR > | |
| GraphWriter< TGR > | graphWriter (const TGR &graph, std::ostream &os) |
| Return a GraphWriter class. More... | |
| template<typename TBGR > | |
| BpGraphWriter< TBGR > | bpGraphWriter (const TBGR &graph, std::ostream &os) |
| Return a BpGraphWriter class. More... | |
| SectionWriter | sectionWriter (std::ostream &os) |
| Return a SectionWriter class. More... | |
|
related |
This function just returns a DigraphReader class.
With this function a digraph can be read from an LGF file or input stream with several maps and attributes. For example, there is network flow problem on a digraph, i.e. a digraph with a capacity map on the arcs and source and target nodes. This digraph can be read with the following code:
For a complete documentation, please see the DigraphReader class documentation.
|
related |
This function just returns a GraphReader class.
With this function a graph can be read from an LGF file or input stream with several maps and attributes. For example, there is weighted matching problem on a graph, i.e. a graph with a weight map on the edges. This graph can be read with the following code:
For a complete documentation, please see the GraphReader class documentation.
|
related |
This function just returns a BpGraphReader class.
With this function a graph can be read from an LGF file or input stream with several maps and attributes. For example, there is bipartite weighted matching problem on a graph, i.e. a graph with a weight map on the edges. This graph can be read with the following code:
For a complete documentation, please see the BpGraphReader class documentation.
|
related |
This function just returns a SectionReader class.
Please see SectionReader documentation about the custom section input.
|
related |
This function just returns a DigraphWriter class.
With this function a digraph can be write to a file or output stream in LGF format with several maps and attributes. For example, with the following code a network flow problem can be written to the standard output, i.e. a digraph with a capacity map on the arcs and source and target nodes:
For a complete documentation, please see the DigraphWriter class documentation.
|
related |
This function just returns a GraphWriter class.
With this function a graph can be write to a file or output stream in LGF format with several maps and attributes. For example, with the following code a weighted matching problem can be written to the standard output, i.e. a graph with a weight map on the edges:
For a complete documentation, please see the GraphWriter class documentation.
|
related |
This function just returns a BpGraphWriter class.
With this function a bipartite graph can be write to a file or output stream in LGF format with several maps and attributes. For example, with the following code a bipartite weighted matching problem can be written to the standard output, i.e. a graph with a weight map on the edges:
For a complete documentation, please see the BpGraphWriter class documentation.
|
related |
This function just returns a SectionWriter class.
Please see SectionWriter documentation about the custom section output.
1.8.5