Let be an undirected, edge-weighted graph with integer weights. The weight of a path is the sum of the weights of the edges in that path. The length of a path is the number of edges in that path.
Let be a vertex in . For every and for every , let denote the weight of a shortest path (in terms of weight) from to of length at most . If there is no path from to of length at most , then .
Consider the statements:
S1: For every and , .
S2: For every , if is part of a shortest path (in terms of weight) from to , then for every , .
Which one of the following options is correct?
- (A)
Only S1 is true
- (B)
Only S2 is true
- (C)
Both S1 and S2 are true
- (D)
Neither S1 nor S2 is true
