I used to be a physics graduate student doing research in quantum field theory. But along the way I took classes in complexity theory and spectral graph theory and got increasingly more interested in doing this. Hence I moved into an applied mathematics department to pursue these topics!