fix regression in graph generation -- martin sperl