Made undirected triangle counting nice.