added graph codes.