A shortest path through an intermediate nodeComplete simple-path enumeration
The problem
Find the minimum weighted directed path from vertex 0 to vertex 3.
The checked result
Minimum distance: 5.
The supplied sequence is a valid path. Every alternative simple path is scored, so equal-cost optima are accepted and longer alternatives are ruled out.
Why the checker accepts it
- Enumerate every simple source-to-target path in the small graph.
- Compute the total weight of each path.
- Find the minimum and accept any witness attaining it.
- Check the witness edge sequence and objective.
Formal specification
{
"vertices": 4,
"edges": [
[
0,
1,
2
],
[
0,
2,
5
],
[
1,
2,
1
],
[
1,
3,
6
],
[
2,
3,
2
]
],
"start": 0,
"target": 3
}Claim and evidence
{
"claim": {
"minimum_distance": 5
},
"witness": {
"path": [
0,
1,
2,
3
]
}
}Dataset construction
Deterministic finite fixture; full enumeration or witness replay as stated. Structured JSON; field meanings are stated in the specification. Acceptance covers 3 checker units for this record; the unit type is stated in its verification scope.
Complexity and limits
Simple-path enumeration can be exponential; nonnegative weights ensure a shortest path can be chosen simple.
Weights are nonnegative. Negative cycles and unreachable targets require distinct result types.
A boundary to investigate
A locally cheapest outgoing edge need not belong to a globally shortest path. Replace enumeration with distance-label certificates and add max-flow/min-cut records.