summaryrefslogtreecommitdiff
path: root/graph.hh
diff options
context:
space:
mode:
authorDerick Huth <derickhuth@gmail.com>2015-05-07 14:41:10 -0600
committerDerick Huth <derickhuth@gmail.com>2015-05-07 14:41:10 -0600
commit6eb2b89896da66a77d0dcdf2d72b98c122826949 (patch)
tree6c8174dadfe11a2a515c29940872a02d81f8d990 /graph.hh
parente6b89c668036ff8424455d3d1d1a5d79a063fc92 (diff)
parentf5c39e4c6ff55520948c2ef331c968cd84b817d9 (diff)
downloadchill-6eb2b89896da66a77d0dcdf2d72b98c122826949.tar.gz
chill-6eb2b89896da66a77d0dcdf2d72b98c122826949.tar.bz2
chill-6eb2b89896da66a77d0dcdf2d72b98c122826949.zip
Merge pull request #6 from dhuth/master
Adding Autotool Files.
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;