Fixing problem with random node selection in duplication-divergence algorithm