Skip to content

Shortest Path in a Graph - specification incomplete #110

@pmarecki

Description

@pmarecki

In the problem "Shortest Path in a Graph" it would be advisible to state explicitly:

a) the weights of the edges are necessarily positive,
b) if the graph is directed or not (the class WeightedGraphEdge suggests a directed graph, but it would be good to confirm it; + the "example" does not really present any input data, nor any "arrows" (as for directed graphs), so it remains unspecified),
c) we are not given any info on if the graph is supposed to be connected; even if it is, the statement should specify what should be returned if no path exists between "start" and "target" (if the graph is directed),

These have essential influence on the type of algorithm that can be correctly applied to the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions