QuickGraph icon indicating copy to clipboard operation
QuickGraph copied to clipboard

HoffmanPavleyRankedShortestPathAlgorithm.ToString()

Open jnyrup opened this issue 7 years ago • 1 comments

The ToString in HoffmanPavleyRankedShortestPathAlgorithm is implemented as

public override string ToString()
{
    return String.Format("{0} at {1} {2}", this.Weight, this.DeviationEdge);
}

This will obviously throw an exception as the number of arguments doesn't match the expected number in the format string.

As I'm not sure what the intended format is, I haven't submitted a PR to fix this.

jnyrup avatar Jan 31 '18 11:01 jnyrup

In my fork I moved to string interpolation keeping the 3 args in a way similar to debugguer display (see here).

KeRNeLith avatar Dec 30 '19 14:12 KeRNeLith