Package rearrangement for future algorithms
Conditional edges for special cases where cost is dynamic