Changeset 986:e997802b855c in lemon-0.x for src/work/peter/edgepathgraph.h
- Timestamp:
- 11/13/04 13:53:28 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1376
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/peter/edgepathgraph.h
r921 r986 74 74 PEdgeIt f; 75 75 76 //dep//cout << "Edge " << id( tail(e)) << " - " << id(head(e)) << " in actual layer is";76 //dep//cout << "Edge " << id(source(e)) << " - " << id(target(e)) << " in actual layer is"; 77 77 T1 incr=actmap[e]; 78 78 //cout << incr << endl; … … 83 83 for(edgepath[e]->first(f); edgepath[e]->valid(f); edgepath[e]->next(f)) 84 84 { 85 //dep//cout << " " << sublayer->id(sublayer-> tail(f)) << "-" << sublayer->id(sublayer->head(f));85 //dep//cout << " " << sublayer->id(sublayer->source(f)) << "-" << sublayer->id(sublayer->target(f)); 86 86 submap[f]+=incr; 87 87 } 88 //dep////cout << EPGr2.id(EPGr2. head(f)) << endl;88 //dep////cout << EPGr2.id(EPGr2.target(f)) << endl; 89 89 //dep//cout << endl; 90 90 } … … 108 108 PEdgeIt f; 109 109 110 cout << "Edge " << id( tail(e)) << " - " << id(head(e)) << " in actual layer is";110 cout << "Edge " << id(source(e)) << " - " << id(target(e)) << " in actual layer is"; 111 111 if(edgepath[e]) 112 112 { … … 114 114 for(edgepath[e]->first(f); edgepath[e]->valid(f); edgepath[e]->next(f)) 115 115 { 116 cout << " " << sublayer->id(sublayer-> tail(f)) << "-" << sublayer->id(sublayer->head(f));116 cout << " " << sublayer->id(sublayer->source(f)) << "-" << sublayer->id(sublayer->target(f)); 117 117 } 118 //cout << EPGr2.id(EPGr2. head(f)) << endl;118 //cout << EPGr2.id(EPGr2.target(f)) << endl; 119 119 cout << endl; 120 120 } … … 235 235 typename Gact::EdgeIt &next(typename Gact::EdgeIt &i) const { return actuallayer.next(i);} 236 236 237 ///Gives back the headnode of an edge.238 typename Gact::Node head(typename Gact::Edge edge) const { return actuallayer.head(edge); }239 ///Gives back the tailnode of an edge.240 typename Gact::Node tail(typename Gact::Edge edge) const { return actuallayer.tail(edge); }237 ///Gives back the target node of an edge. 238 typename Gact::Node target(typename Gact::Edge edge) const { return actuallayer.target(edge); } 239 ///Gives back the source node of an edge. 240 typename Gact::Node source(typename Gact::Edge edge) const { return actuallayer.source(edge); } 241 241 242 242 // Node aNode(InEdgeIt) const {} … … 280 280 ///Add a new edge to the graph. 281 281 282 ///Add a new edge to the graph with tail node \c tail283 ///and head node \c head.282 ///Add a new edge to the graph with source node \c source 283 ///and target node \c target. 284 284 ///\return the new edge. 285 285 typename Gact::Edge addEdge(typename Gact::Node node1, typename Gact::Node node2) { return actuallayer.addEdge(node1, node2);}
Note: See TracChangeset
for help on using the changeset viewer.