COIN-OR::LEMON - Graph Library

Changeset 1343:a81f9cfc9775 in lemon-0.x for src/lemon/graph_writer.h


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.