Mercurial Hosting > traffic-intelligence
diff c/Motion.cpp @ 196:aeab0b88c9b6
began testing of FeatureGraph
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 20 Dec 2011 00:31:37 -0500 |
parents | 09c7881073f3 |
children | 0a27fa343257 |
line wrap: on
line diff
--- a/c/Motion.cpp Fri Dec 16 11:34:07 2011 -0500 +++ b/c/Motion.cpp Tue Dec 20 00:31:37 2011 -0500 @@ -217,12 +217,16 @@ return featureGroups; } -string FeatureGraph::informationString(void) { +string FeatureGraph::informationString(void) const { stringstream ss; ss << num_vertices(graph) << " vertices, " << num_edges(graph) << " edges"; return ss.str(); } +int FeatureGraph::getNVertices(void) const { return num_vertices(graph);} + +int FeatureGraph::getNEdges(void) const { return num_edges(graph);} + void FeatureGraph::computeVertexIndex(void) { graph_traits<FeatureGraph::UndirectedGraph>::vertex_iterator vi, vend; graph_traits<FeatureGraph::UndirectedGraph>::vertices_size_type cnt = 0;