COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
11/13/04 13:53:28 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1376
Message:

Naming changes:

  • head -> target
  • tail -> source
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/peter/edgepathgraph.h

    r921 r986  
    7474        PEdgeIt f;
    7575
    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";
    7777        T1 incr=actmap[e];
    7878        //cout << incr << endl;
     
    8383          for(edgepath[e]->first(f); edgepath[e]->valid(f); edgepath[e]->next(f))
    8484          {
    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));
    8686            submap[f]+=incr;
    8787          }
    88           //dep////cout << EPGr2.id(EPGr2.head(f)) << endl;
     88          //dep////cout << EPGr2.id(EPGr2.target(f)) << endl;
    8989          //dep//cout << endl;
    9090        }
     
    108108        PEdgeIt f;
    109109
    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";
    111111        if(edgepath[e])
    112112        {
     
    114114          for(edgepath[e]->first(f); edgepath[e]->valid(f); edgepath[e]->next(f))
    115115          {
    116             cout << " " << sublayer->id(sublayer->tail(f)) << "-" << sublayer->id(sublayer->head(f));
     116            cout << " " << sublayer->id(sublayer->source(f)) << "-" << sublayer->id(sublayer->target(f));
    117117          }
    118           //cout << EPGr2.id(EPGr2.head(f)) << endl;
     118          //cout << EPGr2.id(EPGr2.target(f)) << endl;
    119119          cout << endl;
    120120        }
     
    235235    typename Gact::EdgeIt &next(typename Gact::EdgeIt &i) const { return actuallayer.next(i);}
    236236
    237     ///Gives back the head node of an edge.
    238     typename Gact::Node head(typename Gact::Edge edge) const { return actuallayer.head(edge); }
    239     ///Gives back the tail node 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); }
    241241 
    242242    //   Node aNode(InEdgeIt) const {}
     
    280280    ///Add a new edge to the graph.
    281281
    282     ///Add a new edge to the graph with tail node \c tail
    283     ///and head node \c head.
     282    ///Add a new edge to the graph with source node \c source
     283    ///and target node \c target.
    284284    ///\return the new edge.
    285285    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.