Implemented HDF5 Input/Output for all graph classes.