Skip to content

Commit 04e56c3

Browse files
committed
CR fixes for grapht
Michael's comments on CR-766007 highlighted things that should be changed in grapht.
1 parent e62f755 commit 04e56c3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/util/graph.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -666,15 +666,12 @@ void grapht<N>::output_dot(std::ostream &out) const
666666
template<class N>
667667
void grapht<N>::output_dot_node(std::ostream &out, node_indext n) const
668668
{
669-
const nodet &node=nodes[n];
669+
const nodet &node=nodes.at(n);
670670

671-
for(typename edgest::const_iterator
672-
it=node.out.begin();
673-
it!=node.out.end();
674-
it++)
671+
for(const auto &edge : node.out)
675672
{
676673
out << " \"" << n << "\" -> "
677-
<< "\"" << it->first << "\" "
674+
<< "\"" << edge.first << "\" "
678675
<< " [arrowhead=\"vee\"];"
679676
<< "\n";
680677
}

0 commit comments

Comments
 (0)