Template Function NetworKit::METISParserDetails::parseLine

Function Documentation

template<class NodeT>
std::vector<NodeT> NetworKit::METISParserDetails::parseLine(const std::string &line, count ignoreFirst = 0)

Parses the node ids of a METIS line into NodeT, after skipping its first ignoreFirst values.

Throws:

std::runtime_error – if the line is malformed or a node id is not a valid NodeT.