Changeset 409:7ab7f083760a in lemon-0.x for src/work/list_graph.h
- Timestamp:
- 04/26/04 11:54:24 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@542
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/list_graph.h
r389 r409 370 370 371 371 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; 373 377 } 374 378 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"; 376 383 return os; 377 384 }
Note: See TracChangeset
for help on using the changeset viewer.