Set cost to infinity or a large value for an edge that does not exist. You can then tell by the result whether an invalid edge was used.
Timmy
2010-04-23 18:07:06
Set cost to infinity or a large value for an edge that does not exist. You can then tell by the result whether an invalid edge was used.