online version: upload graph