Updates to BRF algorithm.  Edge linkage is still not correct.