]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
ng_depth: more use of small_color_map
authorJustin Viiret <justin.viiret@intel.com>
Thu, 29 Jun 2017 23:43:31 +0000 (09:43 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 01:12:26 +0000 (11:12 +1000)
src/nfagraph/ng_depth.cpp

index aaa5166f24f84cdd508762f740cd23ad4289fe3d..6c90326ce477310aa685eea86956a131cc46fb3a 100644 (file)
@@ -207,14 +207,16 @@ void calcDepthFromSource(const GraphT &g,
                          visitor(make_bfs_visitor(record_distances(
                              make_iterator_property_map(dMin.begin(),
                                                         min_index_map),
-                             boost::on_tree_edge()))));
+                             boost::on_tree_edge())))
+                         .color_map(make_small_color_map(mindist_g)));
 
     auto max_index_map = get(vertex_index, maxdist_g);
 
     dag_shortest_paths(maxdist_g, srcVertex,
                        distance_map(make_iterator_property_map(dMax.begin(),
                                                                max_index_map))
-                       .weight_map(make_constant_property<EdgeT>(-1)));
+                       .weight_map(make_constant_property<EdgeT>(-1))
+                       .color_map(make_small_color_map(maxdist_g)));
 
     for (size_t i = 0; i < numVerts; i++) {
         if (dMin[i] > DIST_UNREACHABLE) {