The first line of the section contains the names of the maps separated with white spaces. Each next lines describes an edge in the edgeset. The line contains the source and the target nodes' id and the mapped values for each map.
The edgeset reader needs a node id reader to identify which nodes have to be connected. If a NodeSetReader reads an "label" named map, it will be able to resolve the nodes by ids.
|
Public Member Functions |
template<typename NodeLabelReader> |
| EdgeSetReader (LemonReader &_reader, Graph &_graph, const NodeLabelReader &_nodeLabelReader, const std::string &_name=std::string(), const DefaultSkipper &_skipper=DefaultSkipper()) |
| Constructor.
|
virtual | ~EdgeSetReader () |
| Destructor.
|
template<typename Map> |
EdgeSetReader & | readEdgeMap (std::string name, Map &map) |
| Add a new edge map reader command for the reader.
|
template<typename Reader, typename Map> |
EdgeSetReader & | readEdgeMap (std::string name, Map &map, const Reader &reader=Reader()) |
| Add a new edge map reader command for the reader.
|
template<typename Reader> |
EdgeSetReader & | skipEdgeMap (std::string name, const Reader &reader=Reader()) |
| Add a new edge map skipper command for the reader.
|
bool | isLabelReader () const |
| Returns true if the edgeset can give back the edge by its label.
|
void | readLabel (std::istream &is, Edge &edge) const |
| Gives back the edge by its label.
|
Protected Member Functions |
virtual bool | header (const std::string &line) |
| Gives back true when the SectionReader can process the section with the given header line.
|
virtual void | read (std::istream &is) |
| Reader function of the section.
|