How about a series of pitches, one at a time, in consecutive order.  As
to what qualifies something as a melody, you can have a singable, smooth
melody, or a jagged one, such as presented by Stravinsky.  Cheers!!

Ed