COIN-OR::LEMON - Graph Library

Changeset 1666:30d7e673781f in lemon-0.x


Ignore:
Timestamp:
08/30/05 22:50:58 (14 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2182
Message:

Set dists in a bit better way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/dfs.h

    r1665 r1666  
    513513          // _predNode->set(u,INVALID);
    514514          OutEdgeIt e(*G,s);
    515           if(e!=INVALID) _stack[++_stack_head]=e;
    516           else _processed->set(s,true);
    517           _dist->set(s,_stack_head);
     515          if(e!=INVALID) {
     516            _stack[++_stack_head]=e;
     517            _dist->set(s,_stack_head);
     518          }
     519          else {
     520            _processed->set(s,true);
     521            _dist->set(s,0);
     522          }
    518523        }
    519524    }
Note: See TracChangeset for help on using the changeset viewer.