We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62f755 commit 04e56c3Copy full SHA for 04e56c3
src/util/graph.h
@@ -666,15 +666,12 @@ void grapht<N>::output_dot(std::ostream &out) const
666
template<class N>
667
void grapht<N>::output_dot_node(std::ostream &out, node_indext n) const
668
{
669
- const nodet &node=nodes[n];
+ const nodet &node=nodes.at(n);
670
671
- for(typename edgest::const_iterator
672
- it=node.out.begin();
673
- it!=node.out.end();
674
- it++)
+ for(const auto &edge : node.out)
675
676
out << " \"" << n << "\" -> "
677
- << "\"" << it->first << "\" "
+ << "\"" << edge.first << "\" "
678
<< " [arrowhead=\"vee\"];"
679
<< "\n";
680
}
0 commit comments