previous | start | next

Shortest Distance: 2

The vertices are in three groups:

  1. Vertices whose shortest distance from V0 is known
  2. vertices that are adjacent to some known vertex (the frontier vertices)
  3. all the other vertices (not known, not in the frontier)

Known: {V0}; Frontier: { V1, V2, V3}; Other: { V4, V5, V6 }

At each step, one frontier vertex can be added to the known vertices.

Which frontier vertex can become known in this example?



previous | start | next