COIN-OR::LEMON - Graph Library

Changeset 1702:44d495c659b5 in lemon-0.x


Ignore:
Timestamp:
10/03/05 16:22:10 (19 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2229
Message:

Bugfix in list_graph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/list_graph.h

    r1692 r1702  
    283283        edges[edges[e.id].prev_in].next_in = edges[e.id].next_in;
    284284      else nodes[edges[e.id].target].first_in = edges[e.id].next_in;
     285      if (nodes[n.id].first_in != -1) {
     286        edges[nodes[n.id].first_in].prev_in = e.id;
     287      }
    285288      edges[e.id].target = n.id;
    286289      edges[e.id].prev_in = -1;
     
    295298        edges[edges[e.id].prev_out].next_out = edges[e.id].next_out;
    296299      else nodes[edges[e.id].source].first_out = edges[e.id].next_out;
     300      if (nodes[n.id].first_out != -1) {
     301        edges[nodes[n.id].first_out].prev_out = e.id;
     302      }
    297303      edges[e.id].source = n.id;
    298304      edges[e.id].prev_out = -1;
Note: See TracChangeset for help on using the changeset viewer.