A generator for immutable graphs