Parses tsplib files in xml format.
More...
#include <ogdf/fileformats/TsplibXmlParser.h>
Parses tsplib files in xml format.
See http://comopt.ifi.uni-heidelberg.de/software/TSPLIB95/XML-TSPLIB/Description.pdf
Notes:
- Node indices will be set to the indices of the instance, so all nodes will have indices from 0 to n-1.
- Selfloops will be skipped
Definition at line 54 of file TsplibXmlParser.h.
◆ TsplibXmlParser()
ogdf::TsplibXmlParser::TsplibXmlParser |
( |
std::istream & |
in | ) |
|
|
explicit |
◆ ~TsplibXmlParser()
ogdf::TsplibXmlParser::~TsplibXmlParser |
( |
| ) |
|
|
default |
◆ load()
bool ogdf::TsplibXmlParser::load |
( |
std::istream & |
in, |
|
|
std::string & |
error |
|
) |
| |
|
private |
◆ read() [1/3]
bool ogdf::TsplibXmlParser::read |
( |
Graph & |
G | ) |
|
◆ read() [2/3]
◆ read() [3/3]
◆ m_graphTag
◆ m_hasError
bool ogdf::TsplibXmlParser::m_hasError |
|
private |
◆ m_xml
The documentation for this class was generated from the following file: