summaryrefslogtreecommitdiff
path: root/graph.hh
diff options
context:
space:
mode:
authordhuth <derickhuth@gmail.com>2015-04-13 12:09:42 -0600
committerdhuth <derickhuth@gmail.com>2015-04-13 12:09:42 -0600
commitf0909ea6373f7f01271b1a6707e8022188d885fe (patch)
tree889589f71e4f23c42539a4ff0d85ac0588141e3d /graph.hh
parentb530622a9b2261b1e8a9c5202285d3928c97b893 (diff)
downloadchill-f0909ea6373f7f01271b1a6707e8022188d885fe.tar.gz
chill-f0909ea6373f7f01271b1a6707e8022188d885fe.tar.bz2
chill-f0909ea6373f7f01271b1a6707e8022188d885fe.zip
--
Diffstat (limited to 'graph.hh')
-rw-r--r--graph.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph.hh b/graph.hh
index 504c147..5d0ff66 100644
--- a/graph.hh
+++ b/graph.hh
@@ -76,7 +76,7 @@ template<typename VertexType, typename EdgeType>
std::ostream& operator<<(std::ostream &os, const Graph<VertexType, EdgeType> &g) {
for (int i = 0; i < g.vertex.size(); i++)
for (typename Graph<VertexType,EdgeType>::EdgeList::const_iterator j = g.vertex[i].second.begin(); j != g.vertex[i].second.end(); j++) {
- os << i+1 << "->" << j->first+1 << ":";
+ os << "s" << i << "->" << "s" << j->first << ":";
for (typename std::vector<EdgeType>::const_iterator k = j->second.begin(); k != j->second.end(); k++)
os << " " << *k;
os << std::endl;