src/test/graph_test.cc
changeset 916 c0734a8c282c
parent 906 17f31d280385
child 919 6153d9cf78c6
equal deleted inserted replaced
20:63261dfd198b 21:76212c0c3349
    61   checkGraphEdgeList(G,30);
    61   checkGraphEdgeList(G,30);
    62 
    62 
    63   for(NodeIt n(G);n!=INVALID;++n) {
    63   for(NodeIt n(G);n!=INVALID;++n) {
    64     checkGraphInEdgeList(G,n,3);
    64     checkGraphInEdgeList(G,n,3);
    65     checkGraphOutEdgeList(G,n,3);
    65     checkGraphOutEdgeList(G,n,3);
    66     ++n;
       
    67   }  
    66   }  
    68 }
    67 }
    69 
    68 
    70 //Compile Graph
    69 //Compile Graph
    71 template void hugo::checkCompileStaticGraph<skeleton::StaticGraph>
    70 template void hugo::checkCompileStaticGraph<skeleton::StaticGraph>
    80 //Compile SmartGraph
    79 //Compile SmartGraph
    81 template void hugo::checkCompileGraph<SmartGraph>(SmartGraph &);
    80 template void hugo::checkCompileGraph<SmartGraph>(SmartGraph &);
    82 template void hugo::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);
    81 template void hugo::checkCompileGraphFindEdge<SmartGraph>(SmartGraph &);
    83 
    82 
    84 //Compile SymSmartGraph
    83 //Compile SymSmartGraph
    85 template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &);
    84 //template void hugo::checkCompileGraph<SymSmartGraph>(SymSmartGraph &);
    86 template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);
    85 //template void hugo::checkCompileGraphFindEdge<SymSmartGraph>(SymSmartGraph &);
    87 
    86 
    88 //Compile ListGraph
    87 //Compile ListGraph
    89 template void hugo::checkCompileGraph<ListGraph>(ListGraph &);
    88 template void hugo::checkCompileGraph<ListGraph>(ListGraph &);
    90 template void hugo::checkCompileErasableGraph<ListGraph>(ListGraph &);
    89 template void hugo::checkCompileErasableGraph<ListGraph>(ListGraph &);
    91 template void hugo::checkCompileGraphFindEdge<ListGraph>(ListGraph &);
    90 template void hugo::checkCompileGraphFindEdge<ListGraph>(ListGraph &);
    92 
    91 
    93 
    92 
    94 //Compile SymListGraph
    93 //Compile SymListGraph
    95 template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);
    94 //template void hugo::checkCompileGraph<SymListGraph>(SymListGraph &);
    96 template void hugo::checkCompileErasableGraph<SymListGraph>(SymListGraph &);
    95 //template void hugo::checkCompileErasableGraph<SymListGraph>(SymListGraph &);
    97 template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);
    96 //template void hugo::checkCompileGraphFindEdge<SymListGraph>(SymListGraph &);
    98 
    97 
    99 //Compile FullGraph
    98 //Compile FullGraph
   100 template void hugo::checkCompileStaticGraph<FullGraph>(FullGraph &);
    99 template void hugo::checkCompileStaticGraph<FullGraph>(FullGraph &);
   101 template void hugo::checkCompileGraphFindEdge<FullGraph>(FullGraph &);
   100 template void hugo::checkCompileGraphFindEdge<FullGraph>(FullGraph &);
   102 
   101 
   129     addPetersen(G);
   128     addPetersen(G);
   130     bidirPetersen(G);
   129     bidirPetersen(G);
   131     checkPetersen(G);
   130     checkPetersen(G);
   132   }
   131   }
   133   {
   132   {
   134     SymSmartGraph G;
   133     //    SymSmartGraph G;
   135     addPetersen(G);
   134     //    addPetersen(G);
   136     checkPetersen(G);
   135     //    checkPetersen(G);
   137   }
   136   }
   138   {
   137   {
   139     SymListGraph G;
   138     //    SymListGraph G;
   140     addPetersen(G);
   139     //    addPetersen(G);
   141     checkPetersen(G);
   140     //    checkPetersen(G);
   142   }
   141   }
   143 
   142 
   144   ///\file
   143   ///\file
   145   ///\todo map tests.
   144   ///\todo map tests.
   146   ///\todo copy constr tests.
   145   ///\todo copy constr tests.