gravatar
deba@inf.elte.hu
deba@inf.elte.hu
SmartGraph addEdge bug fix (ticket #88)
0 1 0
default
1 file changed with 2 insertions and 2 deletions:
↑ Collapse diff ↑
Ignore white space 12 line context
... ...
@@ -555,13 +555,13 @@
555 555
      nodes.push_back(NodeT());
556 556
      nodes[n].first_out = -1;
557 557
      
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());
565 565
      
566 566
      arcs[n].target = u._id;
567 567
      arcs[n | 1].target = v._id;
... ...
@@ -636,13 +636,13 @@
636 636
    ///Add a new edge to the graph.
637 637
    
638 638
    ///Add a new edge to the graph with node \c s
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.
646 646
    
647 647
    ///Erase all the nodes and edges from the graph.
648 648
    ///
0 comments (0 inline)