 Graham was born in Glasgow, and educated at Glasgow High School.Graham's father was a successful textile manufacturer, and wanted his son to enter into the Church of Scotland.Instead, defying his father's wishes, Graham became a student at the University of Glasgow in 1819.