If we take a path from a graph with X number nodes/hops , and evaluate its cost C according to its edges weights . Can we obtain any relationship between X and C ? Is there anything in probability theory and graph theory that can directly or indirectly be used to infer a relationship between these two entities? Suggesting some reading resources is very appreciated .