From 070340182a11b23d8c8c6a80ef364fa23ce8dcc5 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Wed, 29 Jan 2014 10:21:47 +0000 Subject: [PATCH] Update graph.cpp Removed graph image writing code as part of issue #90 work. --- src/backend/graph.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/backend/graph.cpp b/src/backend/graph.cpp index 6c31c5ed..e5cf3560 100644 --- a/src/backend/graph.cpp +++ b/src/backend/graph.cpp @@ -60,29 +60,6 @@ namespace boss { return false; } - void SaveGraph(const PluginGraph& graph, const boost::filesystem::path outpath) { - //First need to extract vertex names, since their stored as private members otherwise. - vector names; - vertex_it vit, vit_end; - boost::tie(vit, vit_end) = boost::vertices(graph); - - for (vit, vit_end; vit != vit_end; ++vit) { - names.push_back(graph[*vit].Name()); - } - - //Also, writing the graph requires an index map, which std::list-based VertexList graphs don't have, so one needs to be built separately. - - map index_map; - boost::associative_property_map< map > v_index_map(index_map); - BGL_FORALL_VERTICES(v, graph, PluginGraph) - put(v_index_map, v, graph[v].Name()); - - //Now write graph to file. - boss::ofstream out(outpath); - boost::write_graphviz(out, graph, boost::default_writer(), boost::default_writer(), boost::default_writer(), v_index_map); - out.close(); - } - void Sort(const PluginGraph& graph, std::list& plugins) { //Topological sort requires an index map, which std::list-based VertexList graphs don't have, so one needs to be built separately.