title: Dijkstras algorithm with each edge having cost as well as distance
body: <p>I have to modify dijikstras algorithm with each edge having two values-one as distance and other as cost.I have to find the most efficient way from source to destination.
  Can anyone suggest a way for comparing the edges based on both the factors??
  Thankyou</p>