I think you can invite anyone to those parties whom you like, but I'd stick with close local relatives and friends. It's not, for example, an occasion to invite one's boss (unless the graduating student's employer has sponsored or subsidized them during their school years) or out-of-town guests.
Also, graduations are not gift-giving occasions the way weddings and showers are. Etiquette doesn't require or expect it.