summaryrefslogtreecommitdiff
path: root/graph.hh
diff options
context:
space:
mode:
authordhuth <derickhuth@gmail.com>2015-04-13 11:53:47 -0600
committerdhuth <derickhuth@gmail.com>2015-04-13 11:53:47 -0600
commit2bebca1c3fe897fb681e1853d7d565ecb0be8b52 (patch)
treef2ce75ad88224e8b9e4ed94b1f82b6add24ac7a3 /graph.hh
parent994df9233cd1171a3f18ea575acd58adc105ff2e (diff)
downloadchill-2bebca1c3fe897fb681e1853d7d565ecb0be8b52.tar.gz
chill-2bebca1c3fe897fb681e1853d7d565ecb0be8b52.tar.bz2
chill-2bebca1c3fe897fb681e1853d7d565ecb0be8b52.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..a7b80e9 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 << "->" << j->first << ":";
for (typename std::vector<EdgeType>::const_iterator k = j->second.begin(); k != j->second.end(); k++)
os << " " << *k;
os << std::endl;