COIN-OR::LEMON - Graph Library

Changeset 1343:a81f9cfc9775 in lemon-0.x


Ignore:
Timestamp:
04/12/05 19:34:51 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1782
Message:

Some bug fixes.

Location:
src/lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/graph_reader.h

    r1341 r1343  
    554554        vi = line.find_first_not_of(" \t");
    555555        if (vi != (int)std::string::npos) {
    556           //      std::cerr << "Line: " << line.substr(vi) << std::endl;
    557556          return line.substr(vi);
    558557        }
  • src/lemon/graph_writer.h

    r1333 r1343  
    383383    void writeEdgeSet(WriterBase<Node>* nodeWriter,
    384384                      WriterBase<Edge>* & edgeWriter) {
     385      if (edge_map_writers.size() == 0) return;
    385386      if (nodeWriter == 0) {
    386387        throw DataFormatError("Cannot find node id map");
     
    407408
    408409    void writeNodes(WriterBase<Node>* nodeWriter) {
     410      if (node_writers.size() == 0) return;
    409411      if (nodeWriter == 0) {
    410412        throw DataFormatError("Cannot find node id map");
     
    419421
    420422    void writeEdges(WriterBase<Edge>* edgeWriter) {
     423      if (edge_writers.size() == 0) return;
    421424      if (edgeWriter == 0) {
    422425        throw DataFormatError("Cannot find node id map");
Note: See TracChangeset for help on using the changeset viewer.