Every raga has a set of strict rules that govern the number of notes that can be used, which notes can be used, and their interplay that must be adhered to for the composition of a tune.
Every raga has a defined structure that dictates the use of notes, their combinations, and their order for composing a melody.