Topology of the gauge group in noncommutative gauge theory