Add support for comparison by W.
Add test2 for analyzing random Erdos-Renyi graph probability distributions.