made sure cyclic object references are reflected in the graph given to JUNG