Mercurial > hg > nsaunier > traffic-intelligence
comparison c/test_graph.cpp @ 230:bc4ea09b1743
compatibility modifications for visual studio compilation
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 29 Jun 2012 16:15:13 -0400 |
| parents | f7ddfc4aeb1e |
| children | 249d65ff6c35 |
comparison
equal
deleted
inserted
replaced
| 207:48f83ff769fd | 230:bc4ea09b1743 |
|---|---|
| 26 featureGraph.addFeature(ft2); | 26 featureGraph.addFeature(ft2); |
| 27 BOOST_CHECK_EQUAL(featureGraph.getNVertices(), 2); | 27 BOOST_CHECK_EQUAL(featureGraph.getNVertices(), 2); |
| 28 BOOST_CHECK_EQUAL(featureGraph.getNEdges(), 1); | 28 BOOST_CHECK_EQUAL(featureGraph.getNEdges(), 1); |
| 29 | 29 |
| 30 featureGraph.connectedComponents(lastInstant); | 30 featureGraph.connectedComponents(lastInstant); |
| 31 vector<vector<unsigned int> > components = featureGraph.getFeatureGroups(); | 31 std::vector<std::vector<unsigned int> > components = featureGraph.getFeatureGroups(); |
| 32 BOOST_CHECK_EQUAL(components.size(), 0); | 32 BOOST_CHECK_EQUAL(components.size(), 0); |
| 33 BOOST_CHECK_EQUAL(featureGraph.getNVertices(), 2); | 33 BOOST_CHECK_EQUAL(featureGraph.getNVertices(), 2); |
| 34 BOOST_CHECK_EQUAL(featureGraph.getNEdges(), 1); | 34 BOOST_CHECK_EQUAL(featureGraph.getNEdges(), 1); |
| 35 | 35 |
| 36 featureGraph.connectedComponents(lastInstant+1); | 36 featureGraph.connectedComponents(lastInstant+1); |
