Added an R regression test for transitivity.
Speed up local transitivity calculation, do not store vertices that do not match the rank ordering.