Added functionality for loading and unloading graphs.