also your routing of SJC-LAX-ANYWHERE IN THE WORLD-IYK would not be allowed because of the MPM (maximum permitted mileage. The MPM is the right of the unrestricted ticket holder to deviate from the non-stop/direct routing by upto 25% of the distance.
and of course, as SK has rightly mentioned certain sectors have specific permissable routings.