shortest path codes - multi-criteria