Optimized selection of wireless network topologies and components via efficient pruning of feasible paths