function returns rating if rating exists between two users, otherwise it uses dijkstras to determine the distance between the two users. since the weight of edges represent rating, with greater weights being worse, the greater the distance the worse the transaction path between two users. it could also just be a long transaction path between the users with good ratings along the path, but we arbitrarily prioritized shorter transaction paths as more reliable in our project proposal.
function returns rating if rating exists between two users, otherwise it uses dijkstras to determine the distance between the two users. since the weight of edges represent rating, with greater weights being worse, the greater the distance the worse the transaction path between two users. it could also just be a long transaction path between the users with good ratings along the path, but we arbitrarily prioritized shorter transaction paths as more reliable in our project proposal.