added graph loading