COIN-OR::LEMON - Graph Library

Ticket #88: smart_graph_add_edge.patch

File smart_graph_add_edge.patch, 843 bytes (added by Balazs Dezso, 17 years ago)
  • lemon/smart_graph.h

    # 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  
    558558      return Node(n);
    559559    }
    560560   
    561     Edge addArc(Node u, Node v) {
     561    Edge addEdge(Node u, Node v) {
    562562      int n = arcs.size();
    563563      arcs.push_back(ArcT());
    564564      arcs.push_back(ArcT());
     
    639639    ///and \c t.
    640640    ///\return the new edge.
    641641    Edge addEdge(const Node& s, const Node& t) {
    642       return Parent::addArc(s, t);
     642      return Parent::addEdge(s, t);
    643643    }
    644644
    645645    ///Clear the graph.