Efficient elementary and restricted non-elementary route pricing