it doesn't matter in a cycle if something "starts or ends" it. If you have another idea of what starts or ends mean, then encode it. Otherwise, don't worry, you just want w to be part of a cycle of the edges in X