aboutsummaryrefslogtreecommitdiffstats
path: root/graph.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-16 19:38:05 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:00 -0300
commit8d37c58c29ca9cea1617e878e1a8a10a7f8ae9c4 (patch)
tree1d255f9c087091708740b02bd464507ff61376eb /graph.cpp
parent5b91402b2496f603b80c0a84cdfe3e9b18a19c87 (diff)
Write graph nodes using quotes on Graph::dump.
Diffstat (limited to 'graph.cpp')
-rw-r--r--graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph.cpp b/graph.cpp
index a77f658e..c985449c 100644
--- a/graph.cpp
+++ b/graph.cpp
@@ -124,7 +124,7 @@ void Graph::dumpDot(const QHash< int, QString >& nodeNames, const QString& fileN
for (int i = 0; i < m_d->edges.size(); ++i) {
GraphPrivate::EdgeIterator it = m_d->edges[i].begin();
for (;it != m_d->edges[i].end(); ++it)
- s << nodeNames[i] << " -> " << nodeNames[*it] << '\n';
+ s << '"' << nodeNames[i] << "\" -> \"" << nodeNames[*it] << "\"\n";
}
s << "}\n";
}