Cope with upward loops in the graph

Some NZ subsidiaries of Goldman Sachs have upward loops in the ownership
graph.