Danae (F) married Jupiter (M).
Their child was Perseus (M).

Perseus (M) married Andromeda (F), whose parents were Celeus (M) and Cassiopeia (F).
Their children were Alcæus (M), Electryon (M) and Sthenelus (M).

Alcæus (M) had a child, Amphitryon (M).

Electryon (M) had a child, Alcmene (F).

Amphitryon (M) married Alcmene (F).
Their child was Iphicles (M).

Iphicles (M) had a child, Iolaus (M).

Alcmene (F) also married Jupiter (M).
Their child was Hercules (M).

Hercules (M) married Deianeira (F), whose sibling was Meleager (M), and whose parents were Œneus (M) and Althæa (F).
Their child was Hyllus (M), who married Iole (F).

Sthenelus (M) had a child, Eurystheus (M).

Eurystheus (M) had a child, Admete (F).