Fix regression in GraphUtilities