I am creating my own routable network using pgRouting. I would like my shortest path queries to prefer a route made up of the same attribute.
For example, in the image below (please excuse my terrible drawing), I don't necessarily care if the best route is made up of either A or B as long as it's only A or only B.
أكثر...
For example, in the image below (please excuse my terrible drawing), I don't necessarily care if the best route is made up of either A or B as long as it's only A or only B.

أكثر...