Hermes and Io as cow. Side A from a Greek black-figure amphora, 540-530 BC. Found in Italy.
Courtesy of Bibi Saint-Pol.
Parada has put up a page on the 3 ancestral families of Greek mythology. Two of them are Titan-based, and the third, the result of a union of an Olympian and the daughter of a river god. It's the last that leads to Perseus, since the Olympian is Zeus, the river god, Inachus, and his daughter, Io, whose form was changed to a cow to protect her from Hera. The other two families are those descended from Atlas: the line of Pelops, Tantalus, and the House of Atreus, which includes Agamemnon, and those descended from Prometheus' son Deucalion (the Greek Noah).
If you want to see the family tree that relates Io and Hercules, see Timeless Myth's House of Perseus. The generations from Io to Perseus are complicated by gods popping up repeatedly and by close cousins mating. Basically, it goes something like this:
Io -> Enachus -> Libya -> Belus -> Aegyptus -> Lynceus -> Abas -> Acrisius -> Danae -> Perseus -> Electryon -> Alcmene -> Hercules

Comments
Thanks for the nice mythology resources, those are some complicated family dynamics. Reunions would no doubt be awkward.
Wedding ushers would likewise have trouble seating guests.
I wouldn’t wore about being an usher at their weddings. I’d worry about being a guests. Cadmus and Harmonia recieved poinsoned gifts. Eris crashed the wedding of Thetis and Peleus like the evil fairy in Sleeping Beauty and from there the Trojan war erupted. Gods and mortals really shouldn’t mix!