added storing graphs