COIN-OR::LEMON - Graph Library

Changeset 409:7ab7f083760a in lemon-0.x for src/work/list_graph.h


Ignore:
Timestamp:
04/26/04 11:54:24 (20 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@542
Message:

stGraphWrapper is almost working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/list_graph.h

    r389 r409  
    370370
    371371    friend std::ostream& operator<<(std::ostream& os, const Node& i) {
    372       os << i.node->id; return os;
     372      if (i.valid())
     373        os << i.node->id;
     374      else
     375        os << "invalid";
     376      return os;
    373377    }
    374378    friend std::ostream& operator<<(std::ostream& os, const Edge& i) {
    375       os << "(" << i.edge->_tail->id << "--" << i.edge->id << "->" << i.edge->_head->id << ")";
     379      if (i.valid())
     380        os << "(" << i.edge->_tail->id << "--" << i.edge->id << "->" << i.edge->_head->id << ")";
     381      else
     382        os << "invalid";
    376383      return os;
    377384    }
Note: See TracChangeset for help on using the changeset viewer.