Created with Snap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4x.25x.5x1x2x4x?root = PickVertex()Q.Append(root)pred[root] = rootstep = 1while Q.IsNotEmpty():v = Q.Top()if not label[v]:label[v] = stepstep = step + 1for w in Neighborhood(v):if not pred[w]:Q.Append(w)pred[w] = v12345678910111213