Label correcting algorithm for shortest path

1 view (last 30 days)
jana
jana on 26 May 2013
Can any body provide a code for label correcting algorithm for shortest path. Thankyou!
  6 Comments
Walter Roberson
Walter Roberson on 27 May 2013
LIST = [1]; %initialize
...
i = LIST(1); %take out element
LIST(1) = [];
...
if ~ismember(j, LIST); LIST(end+1) = j; end %add j if it is not there
jana
jana on 28 May 2013
thankyou! that was of great help.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 26 May 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!