COIN-OR::LEMON - Graph Library

Changeset 986:e997802b855c in lemon-0.x for doc


Ignore:
Timestamp:
11/13/04 13:53:28 (15 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
Location:
doc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/graphs.dox

    r959 r986  
    126126  std::cout << "Edges:";
    127127  for (EdgeIt i(g); i!=INVALID; ++i)
    128     std::cout << " (" << g.id(g.tail(i)) << "," << g.id(g.head(i)) << ")";
     128    std::cout << " (" << g.id(g.source(i)) << "," << g.id(g.target(i)) << ")";
    129129  std::cout << std::endl;
    130130\endcode
     
    134134\endcode
    135135
    136 We can also iterate through all edges of the graph very similarly. The head and
    137 tail member functions can be used to access the endpoints of an edge.
     136We can also iterate through all edges of the graph very similarly. The target and
     137source member functions can be used to access the endpoints of an edge.
    138138
    139139\code
     
    142142  std::cout << "Out-edges of node " << g.id(first_node) << ":";
    143143  for (OutEdgeIt i(g, first_node); i!=INVALID; ++i)
    144     std::cout << " (" << g.id(g.tail(i)) << "," << g.id(g.head(i)) << ")";
     144    std::cout << " (" << g.id(g.source(i)) << "," << g.id(g.target(i)) << ")";
    145145  std::cout << std::endl;
    146146
    147147  std::cout << "In-edges of node " << g.id(first_node) << ":";
    148148  for (InEdgeIt i(g, first_node); i!=INVALID; ++i)
    149     std::cout << " (" << g.id(g.tail(i)) << "," << g.id(g.head(i)) << ")";
     149    std::cout << " (" << g.id(g.source(i)) << "," << g.id(g.target(i)) << ")";
    150150  std::cout << std::endl;
    151151\endcode
     
    167167  std::cout << "Id Edge  Value" << std::endl;
    168168  for (EdgeIt e(g); e!=INVALID; ++e)
    169     std::cout << g.id(e) << "  (" << g.id(g.tail(e)) << "," << g.id(g.head(e))
     169    std::cout << g.id(e) << "  (" << g.id(g.source(e)) << "," << g.id(g.target(e))
    170170      << ") " << m[e] << std::endl;
    171171\endcode
  • doc/maps.dox

    r927 r986  
    113113public:
    114114  ValueType operator[](KeyType e) const {
    115     return orig_len.get(e)-pot.get(G.head(e))-pot.get(G.tail(e));
     115    return orig_len.get(e)-pot.get(G.target(e))-pot.get(G.source(e));
    116116  }
    117117 
Note: See TracChangeset for help on using the changeset viewer.