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/hierarchygraph.h

    r921 r986  
    6161            return -1;
    6262          }
    63         else if ((actuallayer->id (actuallayer->tail (actedge)) !=
     63        else if ((actuallayer->id (actuallayer->source (actedge)) !=
    6464                  actuallayer->id (*actuallayernode))
    65                  && (actuallayer->id (actuallayer->head (actedge)) !=
     65                 && (actuallayer->id (actuallayer->target (actedge)) !=
    6666                     actuallayer->id (*actuallayernode)))
    6767          {
     
    133133            for (iei = actuallayer->first (iei, (*actuallayernode));
    134134                 ((actuallayer->valid (iei))
    135                   && (actuallayer->head (iei) == (*actuallayernode)));
     135                  && (actuallayer->target (iei) == (*actuallayernode)));
    136136                 actuallayer->next (iei))
    137137              {
    138138                cout << actuallayer->id (actuallayer->
    139                                          tail (iei)) << " " << actuallayer->
    140                   id (actuallayer->head (iei)) << endl;
     139                                         source (iei)) << " " << actuallayer->
     140                  id (actuallayer->target (iei)) << endl;
    141141                edgenumber++;
    142142              }
     
    144144            for (oei = actuallayer->first (oei, (*actuallayernode));
    145145                 ((actuallayer->valid (oei))
    146                   && (actuallayer->tail (oei) == (*actuallayernode)));
     146                  && (actuallayer->source (oei) == (*actuallayernode)));
    147147                 actuallayer->next (oei))
    148148              {
    149149                cout << actuallayer->id (actuallayer->
    150                                          tail (oei)) << " " << actuallayer->
    151                   id (actuallayer->head (oei)) << endl;
     150                                         source (oei)) << " " << actuallayer->
     151                  id (actuallayer->target (oei)) << endl;
    152152                edgenumber++;
    153153              }
     
    328328    }
    329329
    330     ///Gives back the head node of an edge.
    331     typename Gact::Node head (typename Gact::Edge edge) const
    332     {
    333       return actuallayer.head (edge);
    334     }
    335     ///Gives back the tail node of an edge.
    336     typename Gact::Node tail (typename Gact::Edge edge) const
    337     {
    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);
    339339    }
    340340
     
    394394    ///Add a new edge to the graph.
    395395
    396     ///Add a new edge to the graph with tail node \c tail
    397     ///and head node \c head.
     396    ///Add a new edge to the graph with source node \c source
     397    ///and target node \c target.
    398398    ///\return the new edge.
    399399    typename Gact::Edge addEdge (typename Gact::Node node1,
Note: See TracChangeset for help on using the changeset viewer.