According to Richard Elliott Friedman, the original J document (c.950 BC) knew only of Adam, Eve & Cain his progeny
The Priestly P document (c.700 BC) knew only of Seth and his line
The Redactor R (Ezra c.450 BC) combined the two in parallel, perhaps transferring Noah son of Lamech (J) to the Sethite lineage