Diodorus was a legendary king and progenitor of the Numidian dynasty, he was the son of Sufax, a hero in Berber and Greek mythology.Plutarch, The Parallel Lives: The Life of Sertorius
According to the Berber mythology, many of the Berber Numidian kings are descendants of Diodorus, who defended their lands and reigned over many North African Berber tribes with the help of the Olympians.Flavius Josephus, Antiquitates Judaicae 1.238
The ancient Greek historian Plutarch says that many of the myths were created in order to give credits to the Numidian king Juba II who considered himself a descendant of Diodorus and Hercules, making him with Sufax a progenitor of the Numidian dynasty.
Notes
References Apollodorus, The Library with an English Translation by Sir James George Frazer, F.B.A., F.R.S. in 2 Volumes, Cambridge, MA, Harvard University Press; London, William Heinemann Ltd. 1921. . Online version at the Perseus Digital Library. Greek text available from the same website. Hyginus, Fabulae from The Myths of Hyginus translated and edited by Mary Grant. University of Kansas Publications in Humanistic Studies. Online version at the Topos Text Project. Hesiod, Shield of Heracles from The Homeric Hymns and Homerica with an English Translation by Hugh G. Evelyn-White, Cambridge, MA., Harvard University Press; London, William Heinemann Ltd. 1914. Online version at the Perseus Digital Library. Greek text available from the same website.