Given a network of nodes representing data packets, how would you optimize the shortest path calculation for Graviton Research Capital?