Changeset 8:cd54905012bc in lemon-0.x for src/work/bfsdemo.cc
- Timestamp:
- 12/16/03 19:17:51 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/bfsdemo.cc
r6 r8 68 68 void Put(const IGraph::NodeIterator &n,const value_type &t) { n->isVis=t; } 69 69 value_type Get(const IGraph::NodeIterator &n) const { return n->isVis; } 70 void SetG(IGraph &G) {} 70 71 } visited; 71 72 struct _tree_map_t { … … 73 74 void Put(const IGraph::NodeIterator &n,const value_type &t) 74 75 { cout << t.From().Index() << "->" << t.To().Index() << '\n'; } 76 void SetG(IGraph &G) {} 75 77 } tree; 76 78 do_nothing_map dist; //node->int (W) … … 90 92 void Put(const IGraph::NodeIterator &n,const value_type &t) { n->isVis=t; } 91 93 value_type Get(const IGraph::NodeIterator &n) const { return n->isVis; } 94 void SetG(IGraph &G) {} 92 95 }; 93 96 struct tree_map_t { … … 95 98 void Put(const IGraph::NodeIterator &n,const value_type &t) 96 99 { cout << t.From().Index() << "->" << t.To().Index() << '\n'; } 100 void SetG(IGraph &G) {} 97 101 }; 98 102 typedef do_nothing_map dist_map_t; //node->int (W)
Note: See TracChangeset
for help on using the changeset viewer.