# HG changeset patch
# User Balazs Dezso <deba@inf.elte.hu>
# Date 1208792112 -7200
# Node ID a0f755a30cf1c843736ed1d881f151f6f59ac1f3
# Parent 483bc6ed7292c108f14489f72f2f3361e7b2f6be
SmartGraph addEdge bug fix (ticket #88)
diff -r 483bc6ed7292 -r a0f755a30cf1 lemon/smart_graph.h
a
|
b
|
|
558 | 558 | return Node(n); |
559 | 559 | } |
560 | 560 | |
561 | | Edge addArc(Node u, Node v) { |
| 561 | Edge addEdge(Node u, Node v) { |
562 | 562 | int n = arcs.size(); |
563 | 563 | arcs.push_back(ArcT()); |
564 | 564 | arcs.push_back(ArcT()); |
… |
… |
|
639 | 639 | ///and \c t. |
640 | 640 | ///\return the new edge. |
641 | 641 | Edge addEdge(const Node& s, const Node& t) { |
642 | | return Parent::addArc(s, t); |
| 642 | return Parent::addEdge(s, t); |
643 | 643 | } |
644 | 644 | |
645 | 645 | ///Clear the graph. |