I know other people have asked similar questions but this one is slightly different.
I need to calculate distance as a combination of weight and number of nodes away from root.
So if the graph is A->20 ft->B->10 ft->C then normally you would calculate the distance between A->B to be 20 ft and A->C to be 30 feet, but I want to magnify the cost of hopping through another node.
So let's say every time you jump through another node, the cost is doubled, so A->B distance is 20 ft and B->C distance is 10 ft, but A->C is 20 ft + 2*10 ft = 40 ft
Is this possible with boost's Dijkstra's shortest path?