COIN-OR::LEMON - Graph Library

Changeset 1716:d8c28868f074 in lemon-0.x for test/test_tools.h


Ignore:
Timestamp:
10/07/05 13:05:35 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2243
Message:

Sym -> Undir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_tools.h

    r1435 r1716  
    130130}
    131131
    132 ///Structure returned by \ref addSymPetersen().
     132///Structure returned by \ref addUndirPetersen().
    133133
    134 ///Structure returned by \ref addSymPetersen().
     134///Structure returned by \ref addUndirPetersen().
    135135///
    136 template<class Graph> struct SymPetStruct
     136template<class Graph> struct UndirPetStruct
    137137{
    138138  ///Vector containing the outer nodes.
     
    141141  std::vector<typename Graph::Node> inner;
    142142  ///Vector containing the edges of the inner circle.
    143   std::vector<typename Graph::SymEdge> incir;
     143  std::vector<typename Graph::UndirEdge> incir;
    144144  ///Vector containing the edges of the outer circle.
    145   std::vector<typename Graph::SymEdge> outcir;
     145  std::vector<typename Graph::UndirEdge> outcir;
    146146  ///Vector containing the chord edges.
    147   std::vector<typename Graph::SymEdge> chords;
     147  std::vector<typename Graph::UndirEdge> chords;
    148148};
    149149
    150 ///Adds a Petersen graph to the symmetric \c G.
     150///Adds a Petersen graph to the undirected \c G.
    151151
    152 ///Adds a Petersen graph to the symmetric \c G.
     152///Adds a Petersen graph to the undirected \c G.
    153153///\return The nodes and edges of the generated graph.
    154154
    155155template<typename Graph>
    156 SymPetStruct<Graph> addSymPetersen(Graph &G,int num=5)
     156UndirPetStruct<Graph> addUndirPetersen(Graph &G,int num=5)
    157157{
    158   SymPetStruct<Graph> n;
     158  UndirPetStruct<Graph> n;
    159159
    160160  for(int i=0;i<num;i++) {
Note: See TracChangeset for help on using the changeset viewer.