Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63269 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-06-23 16:51:31


Author: jewillco
Date: 2010-06-23 16:51:30 EDT (Wed, 23 Jun 2010)
New Revision: 63269
URL: http://svn.boost.org/trac/boost/changeset/63269

Log:
Added more quoting
Text files modified:
   trunk/boost/graph/graphviz.hpp | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/boost/graph/graphviz.hpp
==============================================================================
--- trunk/boost/graph/graphviz.hpp (original)
+++ trunk/boost/graph/graphviz.hpp 2010-06-23 16:51:30 EDT (Wed, 23 Jun 2010)
@@ -253,20 +253,20 @@
     typedef typename graph_traits<Graph>::directed_category cat_type;
     typedef graphviz_io_traits<cat_type> Traits;
     std::string name = "G";
- out << Traits::name() << " " << name << " {" << std::endl;
+ out << Traits::name() << " " << escape_dot_string(name) << " {" << std::endl;
 
     gpw(out); //print graph properties
 
     typename graph_traits<Graph>::vertex_iterator i, end;
 
     for(boost::tie(i,end) = vertices(g); i != end; ++i) {
- out << get(vertex_id, *i);
+ out << escape_dot_string(get(vertex_id, *i));
       vpw(out, *i); //print vertex attributes
       out << ";" << std::endl;
     }
     typename graph_traits<Graph>::edge_iterator ei, edge_end;
     for(boost::tie(ei, edge_end) = edges(g); ei != edge_end; ++ei) {
- out << get(vertex_id, source(*ei, g)) << Traits::delimiter() << get(vertex_id, target(*ei, g)) << " ";
+ out << escape_dot_string(get(vertex_id, source(*ei, g))) << Traits::delimiter() << escape_dot_string(get(vertex_id, target(*ei, g))) << " ";
       epw(out, *ei); //print edge attributes
       out << ";" << std::endl;
     }
@@ -338,7 +338,7 @@
       else
         out << "subgraph";
 
- out << " " << g_name << " {" << std::endl;
+ out << " " << escape_dot_string(g_name) << " {" << std::endl;
 
       typename Graph::const_children_iterator i_child, j_child;
 
@@ -375,7 +375,7 @@
         int pos = get(vertex_id, v);
         if ( vertex_marker[pos] ) {
           vertex_marker[pos] = false;
- out << pos;
+ out << escape_dot_string(pos);
 #if defined(BOOST_MSVC) && BOOST_MSVC <= 1300
           typedef typename property_map<Graph, vertex_attribute_t>::const_type
             VertexAttributeMap;
@@ -395,8 +395,8 @@
         int pos = get(get(edge_index, g.root()), g.local_to_global(*ei));
         if ( edge_marker[pos] ) {
           edge_marker[pos] = false;
- out << get(vertex_id, u) << " " << Traits::delimiter()
- << " " << get(vertex_id, v);
+ out << escape_dot_string(get(vertex_id, u)) << " " << Traits::delimiter()
+ << " " << escape_dot_string(get(vertex_id, v));
 #if defined(BOOST_MSVC) && BOOST_MSVC <= 1300
           typedef typename property_map<Graph, edge_attribute_t>::const_type
             EdgeAttributeMap;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk