in reply to Extendable pairwise indexes - prior work?
Not trying to be negative, sorry if I'm discouraging you, but don't you think that sub d2_to_d1($$) { int( $_[0] * ( $_[0] - 1) / 2 + $_[1]) } needs a bit more meat for being a separate module? If you'll couple it with efficient graph storage, that could be interesting, but on itself... I don't know.