Changeset 986:e997802b855c in lemon-0.x for src/work/peter/hierarchygraph.h
- Timestamp:
- 11/13/04 13:53:28 (20 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/hierarchygraph.h
r921 r986 61 61 return -1; 62 62 } 63 else if ((actuallayer->id (actuallayer-> tail(actedge)) !=63 else if ((actuallayer->id (actuallayer->source (actedge)) != 64 64 actuallayer->id (*actuallayernode)) 65 && (actuallayer->id (actuallayer-> head(actedge)) !=65 && (actuallayer->id (actuallayer->target (actedge)) != 66 66 actuallayer->id (*actuallayernode))) 67 67 { … … 133 133 for (iei = actuallayer->first (iei, (*actuallayernode)); 134 134 ((actuallayer->valid (iei)) 135 && (actuallayer-> head(iei) == (*actuallayernode)));135 && (actuallayer->target (iei) == (*actuallayernode))); 136 136 actuallayer->next (iei)) 137 137 { 138 138 cout << actuallayer->id (actuallayer-> 139 tail(iei)) << " " << actuallayer->140 id (actuallayer-> head(iei)) << endl;139 source (iei)) << " " << actuallayer-> 140 id (actuallayer->target (iei)) << endl; 141 141 edgenumber++; 142 142 } … … 144 144 for (oei = actuallayer->first (oei, (*actuallayernode)); 145 145 ((actuallayer->valid (oei)) 146 && (actuallayer-> tail(oei) == (*actuallayernode)));146 && (actuallayer->source (oei) == (*actuallayernode))); 147 147 actuallayer->next (oei)) 148 148 { 149 149 cout << actuallayer->id (actuallayer-> 150 tail(oei)) << " " << actuallayer->151 id (actuallayer-> head(oei)) << endl;150 source (oei)) << " " << actuallayer-> 151 id (actuallayer->target (oei)) << endl; 152 152 edgenumber++; 153 153 } … … 328 328 } 329 329 330 ///Gives back the headnode of an edge.331 typename Gact::Node head(typename Gact::Edge edge) const332 { 333 return actuallayer. head(edge);334 } 335 ///Gives back the tailnode of an edge.336 typename Gact::Node tail(typename Gact::Edge edge) const337 { 338 return actuallayer. tail(edge);330 ///Gives back the target node of an edge. 331 typename Gact::Node target (typename Gact::Edge edge) const 332 { 333 return actuallayer.target (edge); 334 } 335 ///Gives back the source node of an edge. 336 typename Gact::Node source (typename Gact::Edge edge) const 337 { 338 return actuallayer.source (edge); 339 339 } 340 340 … … 394 394 ///Add a new edge to the graph. 395 395 396 ///Add a new edge to the graph with tail node \c tail397 ///and head node \c head.396 ///Add a new edge to the graph with source node \c source 397 ///and target node \c target. 398 398 ///\return the new edge. 399 399 typename Gact::Edge addEdge (typename Gact::Node node1,
Note: See TracChangeset
for help on using the changeset viewer.