SHARE
TWEET

Untitled

a guest Aug 13th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while(cur_neighbor != cur_v) {
  2.   cur_table.push_back(cur_neighbor);
  3.   int next_neighbor = -1;
  4.   for (int j = 1; j <= n; ++j) {
  5.     if (f[cur_neighbor][j] != 0 && j != prev_neighbor) {
  6.       next_neighbor = j;
  7.     }
  8.   }
  9.   prev_neighbor = cur_neighbor;
  10.   cur_neighbor = next_neighbor;
  11. }
RAW Paste Data
Top