Fixed Brandes algorithm. Imagine my chagrin.