Related to #457, another possibility for visualising haplotype sharing to infer adaptive gene flow would be a chord diagram. This could either plot individual haplotypes around the circumference, or plot cohorts with line thickness proportional to number of shared haplotypes.
Also this could be efficient as we just need to compute identical haplotype sharing, no need to do the full pairwise distance calculation. So this can be done via hashing of haplotypes in roughly O(n).
Related to #457, another possibility for visualising haplotype sharing to infer adaptive gene flow would be a chord diagram. This could either plot individual haplotypes around the circumference, or plot cohorts with line thickness proportional to number of shared haplotypes.