I mean, if we're going to play this game, they're all roguelikes and thus they're all descended from Rogue. Which, in turn, descends from Colossal Cave Adventure and Dungeons & Dragons, which is descended from traditional war-gaming, and if we continue down far enough we're back at the Royal Game of Ur.
It's more than that. Both Angband and NetHack are forks of their ancestors.
There is an unbroken line of continous development of the same code base coming from the 80s. Hack and Moria OTOH were clones of Rogue and didn't share any source code with it.
With Angband, the case is a bit more complicated as the original Moria was written in Pascal but it was already converted to C in 1987 and Angband decends from that code.